Ejemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            Logger.Initialize(this.GetType().FullName);

            try
            {
                IO.Fabric.Sdk.Android.Fabric.With(this, new Com.Crashlytics.Android.Crashlytics());
                ISalesAppSession session = Resolver.Instance.Get <ISalesAppSession>();
                if (session != null)
                {
                    Crashlytics.SetUserIdentifier(session.UserId.ToString());
                    Crashlytics.SetUserName(session.FirstName + " " + session.LastName);
                }
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }

            try
            {
                Appsee.AddAppseeListener(this);
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }

            try
            {
                string key = "8d85ddd07dbb41909e60e7a54c6d0a7e";
#if RELEASE
                key = "16f9c8d0c2244b5dab0eef726d7a6245";
#endif
                Appsee.Start(key);
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }
        }