private void Start() { FlurryAndroid.SetLogEnabled(true); if (!Application.RequestAdvertisingIdentifierAsync(new Application.AdvertisingIdentifierCallback(this.OnAdvertisingIdentifierRecieved))) { this.Init(); } }
public static void SetLogEnabled(bool isEnabled) { #if UNITY_EDITOR #elif UNITY_ANDROID FlurryAndroid.SetLogEnabled(isEnabled); #elif UNITY_IOS FlurryIOS.SetLogEnabled(isEnabled); #endif }
private void Initialize() { service = Flurry.Instance; //AssertNotNull(service, "Unable to create Flurry instance!", this); //Assert(!string.IsNullOrEmpty(_iosApiKey), "_iosApiKey is empty!", this); //Assert(!string.IsNullOrEmpty(_androidApiKey), "_androidApiKey is empty!", this); FlurryAndroid.SetLogEnabled(true); service.StartSession(ConfigManager.FLURRY_IOS_KEY, ConfigManager.FLURRY_ANDROID_KEY); }
/// <summary> /// Create Flurry singleton instance and log single event. /// </summary> private void Awake() { IAnalytics service = Flurry.Instance; AssertNotNull(service, "Unable to create Flurry instance!", this); Assert(!string.IsNullOrEmpty(_iosApiKey), "_iosApiKey is empty!", this); Assert(!string.IsNullOrEmpty(_androidApiKey), "_androidApiKey is empty!", this); FlurryAndroid.SetLogEnabled(true); service.StartSession(_iosApiKey, _androidApiKey); }
private AnalyticsManager() { // For Flurry Android only: FlurryAndroid.SetLogEnabled(true); // For Flurry iOS only: FlurryIOS.SetDebugLogEnabled(true); flurryAnalytics = Flurry.Flurry.Instance; flurryAnalytics.StartSession(SGConfig.Instant.GetStringValue(FLURRY_KEY, "")); flurryAnalytics.LogUserID("Github User"); flurryAnalytics.LogEvent("event", new Dictionary <string, string> { { "platform", "Github" } }); }
private void Awake() { // For Flurry Android only: FlurryAndroid.SetLogEnabled(false); // For Flurry iOS only: FlurryIOS.SetDebugLogEnabled(false); IAnalytics service = Flurry.Flurry.Instance; service.StartSession(_iosApiKey, _androidApiKey); service.LogUserID(GameSparksManager.UserID()); }
/// <summary> /// 初始化Flurry /// </summary> public void FlurryInit( ) { FlurryAndroid.SetLogEnabled(true); StartSession("", "62PW8WPH9836DPPJ96VP"); }