Exemple #1
0
        /// <summary>
        /// Register a Conversion Data Listener.
        /// Allows the developer to access the user attribution data in real-time for every new install, directly from the SDK level.
        /// By doing this you can serve users with personalized content or send them to specific activities within the app,
        /// which can greatly enhance their engagement with your app.
        /// </summary>
        /// <example>
        /// <code>
        /// AppsFlyer.getConversionData(this.name);
        /// </code>
        /// </example>
        public static void getConversionData(string objectName)
        {
#if UNITY_IOS && USE_APPSFLYER
            AppsFlyeriOS.getConversionData(objectName);
#elif UNITY_ANDROID && USE_APPSFLYER
            AppsFlyerAndroid.getConversionData(objectName);
#else
#endif
        }
Exemple #2
0
        public static void initSDK(GameObject gameObject)
        {
            EB.Debug.Log("initSDK=====>");
            if (gameObject != null)
            {
                CallBackObjectName = gameObject.name;
            }

#if UNITY_IOS && USE_APPSFLYER
            AppsFlyeriOS.setAppsFlyerDevKey("VCQcpVNrwamwnymY3oeH3Y");
            AppsFlyeriOS.setAppleAppID("1546322314");
            if (gameObject != null)
            {
                AppsFlyeriOS.getConversionData(gameObject.name);
            }
#elif UNITY_ANDROID && USE_APPSFLYER
            AppsFlyerAndroid.initSDK("VCQcpVNrwamwnymY3oeH3Y", gameObject);
            AppsFlyerSDK.AppsFlyerAndroid.setCollectAndroidID(true);
            AppsFlyerSDK.AppsFlyerAndroid.setCollectIMEI(true);
#endif
        }