public AppsflyerUtils(string appsflyerDevKey, string appId, bool isDebugMode) { #if TRACKING_APPSFLYER AppsFlyer.setIsDebug(isDebugMode); AppsFlyer.anonymizeUser(isDebugMode); AppsFlyer.initSDK(appsflyerDevKey, appId); AppsFlyer.startSDK(); #if UNITY_ANDROID && TRACKING_FIREBASE Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived; #endif #if UNITY_IOS UnityEngine.iOS.NotificationServices.RegisterForNotifications(UnityEngine.iOS.NotificationType.Alert | UnityEngine.iOS.NotificationType.Badge | UnityEngine.iOS.NotificationType.Sound); #endif #endif }
public void anonymizeUser() { shouldAnonymizeUser = !shouldAnonymizeUser; AppsFlyer.anonymizeUser(shouldAnonymizeUser); anonymizeUserBTN.GetComponentInChildren <Text>().text = !shouldAnonymizeUser ? "Anonymize User" : "Deanonymize User"; }