using UnityEngine; using Amanotes.TripleSDK.Core; using System.Collections.Generic; using AppsFlyerSDK; namespace Amanotes.TripleSDK.Appsflyer { [InjectService(TargetPlatform = (int)RuntimePlatform.Android, Package = "AmaAppsflyers", GameObjectName = "AppsFlyerObject")] [StartupService] public class AppsflyerAndroidService : AppsflyerService { public override void Init(string devKey, string appId) { // Debug.Log("Appsflyer Init:" + devKey); AppsFlyer.initSDK(devKey, appId, this); AppsFlyer.startSDK(); //For Android Uninstall //AppsFlyer.setGCMProjectNumber ("YOUR_GCM_PROJECT_NUMBER"); IsInitialized = true; LogEvent("af_open_session"); } public override void AppsFlyerTrackerCallbacks() { LogEvent("af_android_conversion"); } } }