sDofeen/cordova-install-referrer

This is not working

Opened this issue · 0 comments

In ADB mode it is working, but while I get the referral in ondeviceready, the value doesn't get

My Code is

function onDeviceReady()
{
	AppCenter.Analytics.setEnabled(true, appCenterSuccess, appCenterError);
	
	
	// Callback style
	cordova.plugins.referrer.get(function (referrer)
	{
		AppCenter.Analytics.trackEvent('Referrer', { Ref: referrer});
		//console.log(referrer);
	}
	,function (error)
	{
		//console.error(error);
	});
}