public void Initialize (AppsFlyerInitialization initOptions)
{
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize");
try {
if (initOptions == null) {
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - no init options provided. Cannot initiliaze module.");
return;
}
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - DevKey [" + initOptions.DevKey + "]");
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - AppleAppID [" + initOptions.AppID + "]");
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - CustomerID [" + initOptions.CustomerUserID + "]");
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - Currency [" + initOptions.CurrencyCode + "]");
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - IsHTTPS [" + (initOptions.CommunicationsProtocol == CommunicationsProtocol.HTTPS) + "]");
// Your unique developer ID, which is accessible from your account
AppsFlyerTracker.SharedTracker.AppsFlyerDevKey = initOptions.DevKey;
// Your iTunes App
AppsFlyerTracker.SharedTracker.AppleAppID = initOptions.AppID;
if(initOptions.CustomerUserID != null)
AppsFlyerTracker.SharedTracker.CustomerUserID = initOptions.CustomerUserID;
AppsFlyerTracker.SharedTracker.CurrencyCode = initOptions.CurrencyCode;
//AppsFlyerTracker.SharedTracker.IsHTTPS = (initOptions.CommunicationsProtocol == CommunicationsProtocol.HTTPS) ;
} catch (Exception ex) {
SystemLogger.Log (SystemLogger.Module.PLATFORM, "AppsFlyer Initialize - exception catched: " + ex.Message, ex);
}
}