Beispiel #1
0
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);


            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            //Initializing FFImageLoading
            CachedImageRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            UXDivers.Artina.Shared.GrialKit.Init(this, "airmily.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));



            LoadApplication(new App());
        }
Beispiel #2
0
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            Window.RequestFeature(WindowFeatures.ActionBar);
            SetTheme(Resource.Style.AppTheme);

            ToolbarResource   = Resource.Layout.Toolbar;
            TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            ZXing.Net.Mobile.Forms.Android.Platform.Init();

            // Initializing FFImageLoading
            CachedImageRenderer.Init(true);

            Xamarin.Forms.Forms.Init(this, bundle);
            GrialKit.Init(this, "AgateMerchant.Droid.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            locale = Resources.Configuration.Locale;

            LoadApplication(new App());
        }
Beispiel #3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie

            UXDivers.Artina.Shared.GrialKit.Init(new ThemeColors(), "RoboScout.iOS.GrialLicense");

#if !DEBUG
            // Reminder to update the project license to production mode before publishing
            if (!UXDivers.Artina.Shared.License.IsProductionLicense())
            {
                BeginInvokeOnMainThread(() =>
                {
                    try
                    {
                        var alert = UIAlertController.Create(
                            "Grial UI Kit Reminder",
                            "Before publishing this App remember to change the license file to PRODUCTION MODE so it doesn't expire.",
                            UIAlertControllerStyle.Alert);

                        alert.AddAction(UIAlertAction.Create("Ok", UIAlertActionStyle.Default, null));

                        var root       = UIApplication.SharedApplication.KeyWindow.RootViewController;
                        var controller = root.PresentedViewController ?? root.PresentationController.PresentedViewController;
                        controller.PresentViewController(alert, animated: true, completionHandler: null);
                    }
                    catch
                    {
                    }
                });
            }
#endif

            // Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();
            FormsHelper.ForceLoadingAssemblyContainingType <TabItem>();
            FormsHelper.ForceLoadingAssemblyContainingType <Repeater>();
            FormsHelper.ForceLoadingAssemblyContainingType <FFImageLoading.Transformations.BlurredTransformation>();

            ReferenceCalendars();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie

            UXDivers.Artina.Shared.GrialKit.Init(new ThemeColors(), "AwtApplication.iOS.GrialLicense");

            // Code for starting up the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            LoadApplication(new App());

            if (options != null)
            {
                // check for a local notification
                if (options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey))
                {
                    var localNotification = options[UIApplication.LaunchOptionsLocalNotificationKey] as UILocalNotification;
                    if (localNotification != null)
                    {
                        NSObject HByEvent;
                        NSObject HIdent;
                        if (localNotification.UserInfo.TryGetValue(new NSString("BY_EVENT"), out HByEvent))
                        {
                            bool HFromEvent = (bool)(HByEvent as NSNumber);
                            if (HFromEvent)
                            {
                                HIdent = localNotification.UserInfo.ValueForKey(new NSString("EVENT_IDENT"));
                                ViewService.ShowEventDetailByIdent((int)(HIdent as NSNumber));
                            }
                            else
                            {
                                if (localNotification.UserInfo.TryGetValue(new NSString("START_DATE"), out HIdent))
                                {
                                    ViewService.ShowBreakoutSession((HIdent as NSString));
                                }
                            }
                        }
                    }
                }
            }

            return(base.FinishedLaunching(app, options));
        }
Beispiel #5
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            NativePlacesApi.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie
            PullToRefreshLayoutRenderer.Init();
            XFGloss.iOS.Library.Init();
            CarouselViewRenderer.Init();
            // Presenters Initialization
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();

            GrialKit.Init(new ThemeColors(), "Bullytect.iOS.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            var setup = new Setup(this, Window);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();

            startup.Start();

            LoadApplication(setup.FormsApplication);

            Window.MakeKeyAndVisible();


            FirebasePushNotificationManager.Initialize(options, true);
            // Presentation Options
            FirebasePushNotificationManager.CurrentNotificationPresentationOption = UNNotificationPresentationOptions.Alert | UNNotificationPresentationOptions.Badge;

            var manager = BITHockeyManager.SharedHockeyManager;

            manager.Configure("1b44222db10b498f82e43ddc488bf1d5");
            manager.StartManager();
            manager.Authenticator.AuthenticateInstallation();


            return(true);
        }
Beispiel #6
0
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);

            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            // Initializing FFImageLoading
            CachedImageRenderer.Init(enableFastRenderer: false);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            UXDivers.Artina.Shared.GrialKit.Init(this, "RoboScout.Droid.GrialLicense");

#if !DEBUG
            // Reminder to update the project license to production mode before publishing
            if (!UXDivers.Artina.Shared.License.IsProductionLicense())
            {
                try
                {
                    AlertDialog.Builder alert = new AlertDialog.Builder(this);
                    alert.SetTitle("Grial UI Kit Reminder");
                    alert.SetMessage("Before publishing this App remember to change the license file to PRODUCTION MODE so it doesn't expire.");
                    alert.SetPositiveButton("OK", (sender, e) => { });

                    var dialog = alert.Create();
                    dialog.Show();
                }
                catch
                {
                }
            }
#endif

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            _locale = Resources.Configuration.Locale;

            ReferenceCalendars();

            LoadApplication(new App());
        }
Beispiel #7
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            Microsoft.Azure.Mobile.MobileCenter.Configure("56032f21-e332-42c6-b3a6-ed0b21b2f0ec");

            Acr.UserDialogs.UserDialogs.Init(() => (Activity)Forms.Context); // Initializing Acr.UserDialogs
            FFImageLoading.Forms.Droid.CachedImageRenderer.Init();           // Initializing FFImageLoading

            // Initializing UXDivers.Effects
            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.Droid.CircleEffect>();

            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);


            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            //Initializing FFImageLoading
            CachedImageRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            UXDivers.Artina.Shared.GrialKit.Init(this, "AwtApplication.Droid.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            LoadApplication(new App());

            if (this.Intent.HasExtra("BY_EVENT"))
            {
                bool HFromEvent = this.Intent.GetBooleanExtra("BY_EVENT", false);
                if (HFromEvent)
                {
                    int HEventIdent = this.Intent.GetIntExtra("EVENT_IDENT", -1);
                    ViewService.ShowEventDetailByIdent(HEventIdent);
                }
                else
                {
                    if (this.Intent.HasExtra("START_DATE"))
                    {
                        // Dann haben wir ein Breakoutsession Start-Datum
                        string HBreakoutStartDate = this.Intent.GetStringExtra("START_DATE");
                        ViewService.ShowBreakoutSession(HBreakoutStartDate);
                    }
                }
            }
        }
Beispiel #9
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie

            UXDivers.Artina.Shared.GrialKit.Init(new ThemeColors(), "GrialRTLService.iOS.GrialLicense");

            // Code for starting up the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);


            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            //arveen likes men eating his ass like a cupcake

            base.OnCreate(bundle);

            CachedImageRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            UXDivers.Artina.Shared.GrialKit.Init(this, "ATG.Droid.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            LoadApplication(new App());
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            new SfRatingRenderer();

            UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(255, 131, 0);
            UINavigationBar.Appearance.TintColor    = UIColor.White;

            global::Xamarin.Forms.Forms.Init();
            Microsoft.Azure.Mobile.MobileCenter.Configure("515f105a-55ed-44ba-98f5-7db8771d2d40");
            CachedImageRenderer.Init();   // Initializing FFImageLoading
            AnimationViewRenderer.Init(); // Initializing Lottie

            // Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif
            // Initializing UXDivers.Effects
            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Beispiel #12
0
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);


            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            //CrashManager.Register(this, GridCentral.Helpers.Keys.HockeyId_Android);
            //MetricsManager.Register(Application, GridCentral.Helpers.Keys.HockeyId_Android);

            //Initializing FFImageLoading
            CachedImageRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            CarouselViewRenderer.Init();
            UXDivers.Artina.Shared.GrialKit.Init(this, "GridCentral.Droid.GrialLicense");
            UserDialogs.Init(() => (Activity)Forms.Context);
            PhoneCallImplementation.Init();

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            mPushNotify paramValue = new mPushNotify();

            paramValue.Messgae  = Intent.GetStringExtra("message");
            paramValue.Objecter = Intent.GetStringExtra("objecter");
            paramValue.Type     = Intent.GetStringExtra("type");
            paramValue.Why      = Intent.GetStringExtra("why");

            if (!String.IsNullOrEmpty(paramValue.Messgae))
            {
                LoadApplication(new App(paramValue));
            }
            else
            {
                LoadApplication(new App());

                //LoadApplication(UXDivers.Gorilla.Droid.Player.CreateApplication(
                //    this,
                //    new UXDivers.Gorilla.Config("Good Gorilla").RegisterAssembliesFromTypes<UXDivers.Artina.Shared.CircleImage,
                //    GrialShapesFont, BindablePicker, XLabs.Forms.Controls.CheckBox, CarouselViewControl>()));
            }

            try
            {
                // Check to ensure everything's set up right
                GcmClient.CheckDevice(this);
                GcmClient.CheckManifest(this);

                // Register for push notifications
                System.Diagnostics.Debug.WriteLine("Registering...");
                GcmClient.Register(this, PushHandlerBroadcastReceiver.SENDER_IDS);
            }
            catch (Java.Net.MalformedURLException)
            {
                CreateAndShowDialog("There was an error creating the client. Verify the URL.", "Error");
            }
            catch (Exception e)
            {
                CreateAndShowDialog(e.Message, "Error");
            }

            CheckForUpdates();
        }
        protected override void OnCreate(Bundle bundle)
        {
            // Changing to App's theme since we are OnCreate and we are ready to
            // "hide" the splash
            base.Window.RequestFeature(WindowFeatures.ActionBar);
            base.SetTheme(Resource.Style.AppTheme);

            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs;

            base.OnCreate(bundle);

            // Initializing FFImageLoading
            CachedImageRenderer.Init(enableFastRenderer: false);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            UXDivers.Artina.Shared.GrialKit.Init(this, "RoboScout.Droid.GrialLicense");

#if !DEBUG
            // Reminder to update the project license to production mode before publishing
            if (!UXDivers.Artina.Shared.License.IsProductionLicense())
            {
                try
                {
                    AlertDialog.Builder alert = new AlertDialog.Builder(this);
                    alert.SetTitle("Grial UI Kit Reminder");
                    alert.SetMessage("Before publishing this App remember to change the license file to PRODUCTION MODE so it doesn't expire.");
                    alert.SetPositiveButton("OK", (sender, e) => { });

                    var dialog = alert.Create();
                    dialog.Show();
                }
                catch
                {
                }
            }
#endif

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

            _locale = Resources.Configuration.Locale;

            ReferenceCalendars();

#if GORILLA
            LoadApplication(
                UXDivers.Gorilla.Droid.Player.CreateApplication(
                    this,
                    new UXDivers.Gorilla.Config("Good Gorilla")
                    // Shared.Base
                    .RegisterAssemblyFromType <UXDivers.Artina.Shared.NegateBooleanConverter>()
                    // Shared
                    .RegisterAssemblyFromType <UXDivers.Artina.Shared.CircleImage>()
                    // Tab Control
                    .RegisterAssembly(GorillaSdkHelper.TabControlType.Assembly)
                    // Repeater Control
                    .RegisterAssembly(GorillaSdkHelper.RepeaterControlType.Assembly)

                    // Effects
                    .RegisterAssembly(typeof(UXDivers.Effects.Effects).Assembly)

                    // // FFImageLoading.Transformations
                    .RegisterAssemblyFromType <FFImageLoading.Transformations.BlurredTransformation>()
                    // FFImageLoading.Forms
                    .RegisterAssemblyFromType <FFImageLoading.Forms.CachedImage>()

                    // Grial Application PCL
                    .RegisterAssembly(typeof(RoboScout.App).Assembly)

                    .RegisterAssembly(typeof(Lottie.Forms.AnimationView).Assembly)
                    ));
#else
            LoadApplication(new App());
#endif
        }
Beispiel #14
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //var manager = BITHockeyManager.SharedHockeyManager;
            //manager.Configure(GridCentral.Helpers.Keys.HockeyId_IOS);
            //manager.StartManager();
            //manager.Authenticator.AuthenticateInstallation();
            var container = new SimpleContainer();

            container.Register <IDevice>(t => AppleDevice.CurrentDevice);
            container.Register <IDisplay>(t => t.Resolve <IDevice>().Display);
            container.Register <INetwork>(t => t.Resolve <IDevice>().Network);

            Resolver.SetResolver(container.GetResolver());

            global::Xamarin.Forms.Forms.Init();
            CarouselViewRenderer.Init();
            CachedImageRenderer.Init(); // Initializing FFImageLoading


            UXDivers.Artina.Shared.GrialKit.Init(new ThemeColors(), "GridCentral.iOS.GrialLicense");
            iOS11Workaround();

            // Code for starting up the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif


            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            LoadApplication(new App());

            //LoadApplication(UXDivers.Gorilla.iOS.Player.CreateApplication(
            //    new UXDivers.Gorilla.Config("Good Gorilla").RegisterAssembliesFromTypes<UXDivers.Artina.Shared.CircleImage,
            //    GrialShapesFont, XLabs.Forms.Controls.CheckBox, XLabs.Forms.Controls.BindableRadioGroup, BindablePicker, CarouselViewControl>()));


            ////////////Notifactions/////////////////////
            // get permission for notification
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // iOS 10
                var authOptions = UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound;
                UNUserNotificationCenter.Current.RequestAuthorization(authOptions, (granted, error) =>
                {
                    Console.WriteLine(granted);
                });

                // For iOS 10 display notification (sent via APNS)
                UNUserNotificationCenter.Current.Delegate = this;
            }
            else
            {
                var allNotificationTypes = UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound;
                var settings             = UIUserNotificationSettings.GetSettingsForTypes(allNotificationTypes, null);


                UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            }

            UIApplication.SharedApplication.RegisterForRemoteNotifications();

            // Firebase component initialize
            Firebase.Core.App.Configure();
            //System.Diagnostics.Debug.WriteLine("Token =" + CrossSettings.Current.GetValueOrDefault<string>("Token"));
            GridCentral.Services.AccountService.Instance.getToken(CrossSettings.Current.GetValueOrDefault <string>("Token"));
            Firebase.InstanceID.InstanceId.Notifications.ObserveTokenRefresh((sender, e) =>
            {
                var newToken = Firebase.InstanceID.InstanceId.SharedInstance.Token;
                // System.Diagnostics.Debug.WriteLine("xToken =" + newToken);
                GridCentral.Services.AccountService.Instance.getToken(newToken);
                connectFCM();
            });
            //////////////////////////////////////

            //// Handling Push notification when app is closed if App was opened by Push Notification...
            //if (options != null && options.Keys != null && options.Keys.GetCount() != 0 && options.ContainsKey(new NSString("UIApplicationLaunchOptionsRemoteNotificationKey")))
            //{
            //    NSDictionary UIApplicationLaunchOptionsRemoteNotificationKey = options.ObjectForKey(new NSString("UIApplicationLaunchOptionsRemoteNotificationKey")) as NSDictionary;

            //    //ProcessNotification(UIApplicationLaunchOptionsRemoteNotificationKey, false);  //check here
            //}

            return(base.FinishedLaunching(app, options));
        }
Beispiel #15
0
        protected override void OnCreate(Bundle bundle)
        {
            try
            {
                ToolbarResource   = Resource.Layout.Toolbar;
                TabLayoutResource = Resource.Layout.Tabs;

                base.OnCreate(bundle);

                App.ScreenWidth  = (int)((int)Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density);                // real pixels
                App.ScreenHeight = (int)((int)Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density);               // real pixels

                // Required for proper Push notifications handling
                var setupSingleton = MvxAndroidSetupSingleton.EnsureSingletonAvailable(ApplicationContext);
                setupSingleton.EnsureInitialized();

                global::Xamarin.Forms.Forms.Init(this, bundle);
                Xamarin.FormsMaps.Init(this, bundle);
                GrialKit.Init(this, "Bullytect.Droid.GrialLicense");

                // Presenters Initialization
                global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);

                // Xamarin.Auth CustomTabs Initialization/Customisation
                global::Xamarin.Auth.CustomTabsConfiguration.ActionLabel                = null;
                global::Xamarin.Auth.CustomTabsConfiguration.MenuItemTitle              = null;
                global::Xamarin.Auth.CustomTabsConfiguration.AreAnimationsUsed          = true;
                global::Xamarin.Auth.CustomTabsConfiguration.IsShowTitleUsed            = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsUrlBarHidingUsed         = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsCloseButtonIconUsed      = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsActionButtonUsed         = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsActionBarToolbarIconUsed = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsDefaultShareMenuItemUsed = false;

                global::Android.Graphics.Color color_xamarin_blue;
                color_xamarin_blue = new global::Android.Graphics.Color(0x34, 0x98, 0xdb);
                global::Xamarin.Auth.CustomTabsConfiguration.ToolbarColor = color_xamarin_blue;


                // ActivityFlags for tweaking closing of CustomTabs
                // please report findings!
                global::Xamarin.Auth.CustomTabsConfiguration.
                ActivityFlags =
                    global::Android.Content.ActivityFlags.NoHistory
                    |
                    global::Android.Content.ActivityFlags.SingleTop
                    |
                    global::Android.Content.ActivityFlags.NewTask
                ;

                global::Xamarin.Auth.CustomTabsConfiguration.IsWarmUpUsed   = true;
                global::Xamarin.Auth.CustomTabsConfiguration.IsPrefetchUsed = true;

                UserDialogs.Init(this);
                PullToRefreshLayoutRenderer.Init();
                XFGloss.Droid.Library.Init(this, bundle);
                //Initializing FFImageLoading
                CachedImageRenderer.Init();
                CarouselViewRenderer.Init();
                FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

                LoadApplication(FormsApplication);
                FirebasePushNotificationManager.ProcessIntent(Intent);

                System.Diagnostics.Debug.WriteLine("Token: " + FirebaseInstanceId.Instance.Token);

                var starter = Mvx.Resolve <IMvxAppStart>();
                starter.Start();

                CrashManager.Register(this, "1a19190547c340aa9e7bf156aa5527ec");
                MetricsManager.Register(Application, "1a19190547c340aa9e7bf156aa5527ec");
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("**BullTect LAUNCH EXCEPTION**\n\n" + e);
            }
        }