示例#1
0
 private void Start()
 {
     FlurryAndroid.SetLogEnabled(true);
     if (!Application.RequestAdvertisingIdentifierAsync(new Application.AdvertisingIdentifierCallback(this.OnAdvertisingIdentifierRecieved)))
     {
         this.Init();
     }
 }
示例#2
0
    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);
    }
示例#4
0
    /// <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);
    }
示例#5
0
        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());
    }
示例#7
0
 /// <summary>
 /// 初始化Flurry
 /// </summary>
 public void FlurryInit( )
 {
     FlurryAndroid.SetLogEnabled(true);
     StartSession("", "62PW8WPH9836DPPJ96VP");
 }