void Start() { // For detailed logging //AppsFlyer.setIsDebug (true); #if UNITY_IOS //Mandatory - set your AppsFlyer’s Developer key. AppsFlyer.setAppsFlyerKey("YOUR_APPSFLYER_DEV_KEY_HERE"); //Mandatory - set your apple app ID //NOTE: You should enter the number only and not the "ID" prefix AppsFlyer.setAppID("YOUR_APP_ID_HERE"); AppsFlyer.trackAppLaunch(); #elif UNITY_ANDROID //Mandatory - set your Android package name AppsFlyer.setAppID("com.Blast.ColorRing"); //Mandatory - set your AppsFlyer’s Developer key. AppsFlyer.init("aTYJZVwsYCTz8BbnbrDbxL"); AppsFlyer.setCustomerUserID("965721"); //For getting the conversion data in Android, you need to this listener. //AppsFlyer.loadConversionData("AppsFlyerTrackerCallbacks"); #endif }
public override System.Collections.Generic.IEnumerator <byte> SetUserId(string id) { #if APPSFLYER_ANALYTICS_API AppsFlyer.setCustomerUserID(id.ToString()); #endif yield return(0); }
private void SetAppsFlyerDedicatedData() { if (CustomUserID != GlobalInfo.MY_PLAYER_ID && 0 != GlobalInfo.MY_PLAYER_ID) { CustomUserID = GlobalInfo.MY_PLAYER_ID; AppsFlyer.setCustomerUserID(GlobalInfo.MY_PLAYER_ID.ToString()); } }
private void Initialize(string trUserId) { if (!this.initialized) { AppsFlyer.setIsDebug(ConfigSdk.SDK_DEBUG); AppsFlyer.setAppsFlyerKey(ConfigSdk.APPSFLYER_DEV_KEY); AppsFlyer.setCustomerUserID(trUserId); AppsFlyer.setAppID(ConfigSdk.ANDROID_PACKAGE_NAME); AppsFlyer.setIsDebug(ConfigSdk.SDK_DEBUG); AppsFlyer.getConversionData(); this.initialized = true; } }