using UnityEngine; using Amanotes.TripleSDK.Core; using AppsFlyerSDK; namespace Amanotes.TripleSDK.Appsflyer { [InjectService(TargetPlatform = (int)RuntimePlatform.IPhonePlayer, Package = "AmaAppsflyers", GameObjectName = "AppsFlyerObject")] [StartupService] public class AppsflyerIosService : AppsflyerService { public override void AppsFlyerTrackerCallbacks() { LogEvent("af_ios_conversion"); } public override void Init(string devKey, string appId) { /* AppsFlyer.setDebugLog(true); */ AppsFlyer.initSDK(devKey, appId, this); AppsFlyer.startSDK(); IsInitialized = true; LogEvent("af_open_session"); } } }