Ejemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(bundle);

            UserDialogs.Init(this);


            global::Xamarin.Forms.Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init(this);
            LoadApplication(new App());
        }
Ejemplo n.º 2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //Use RadioButtons
            Xamarin.Forms.Forms.SetFlags("RadioButton_Experimental");

            global::Xamarin.Forms.Forms.Init();

            //Toast Plugin
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init();
            XamForms.Controls.iOS.Calendar.Init();
            CarouselViewRenderer.Init();
            SegmentedControlRenderer.Init();
            new SfChartRenderer();

            SendAnyPreviousCrash(); //read log file and send crash report if available
            mainApplication = new App();
            MessagingCenter.Subscribe <App, string>(mainApplication, AppConstant.ErrorEvent, (s, error) =>
            {
                mainApplication.MainPage.DisplayAlert("Error", AppConstant.ErrorText, "Close");
                SendErrorEmail(error);
            });

            LoadApplication(mainApplication);

            #region Pie Chart Title Customization
            Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) =>
            {
                if (e.NativeView is SFChart)
                {
                    (e.NativeView as SFChart).Delegate = new ChartCustomDelegate(e.View as SfChart);
                }
            };
            #endregion
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // Request Permissions
                UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) =>
                {
                    // Do something if needed
                });
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null
                    );

                app.RegisterUserNotificationSettings(notificationSettings);
            }

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 4
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);

            DependencyService.Register<ToastNotification>();
            ToastNotification.Init(this);

            LoadApplication(new App());

          //FirebasePushNotificationManager.ProcessIntent(this, Intent);
        }
Ejemplo n.º 5
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            Activity          = this;
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init(this);
            ImageCircleRenderer.Init();
            Messier16.Forms.Controls.Droid.PlatformTabbedPageRenderer.Init();
            BadgeView.Android.CircleViewRenderer.Initialize();
            AnimationViewRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 6
0
        protected override void InitializeIoC()
        {
            base.InitializeIoC();
            Mvx.IoCProvider.RegisterType <IToastNotificator, ToastNotification>();
            ToastNotification.Init();
            Mvx.IoCProvider.RegisterSingleton <IToastService>(new ToastService());
            Mvx.IoCProvider.RegisterSingleton <IAppVersionHelper>(new AppVersionHelper());


#if DEBUG
            MobileAds.Configure(AppConfigurations.AdMobIosTestAppId);
#endif
#if !DEBUG
            MobileAds.Configure(AppConfigurations.AdMobIosAppId);
#endif
        }
Ejemplo n.º 7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Forms.Init(this, savedInstanceState);
            FormsMaterial.Init(this, savedInstanceState);
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);
            CardsViewRenderer.Preserve();
            LoadApplication(new App());
        }
Ejemplo n.º 8
0
        protected override void OnCreate(Bundle bundle)
        {
            GSGLoggerFactory.Instance.AddDebug();

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

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            LoadApplication(new App());
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            //System.Net.AuthenticationSchemes.Negotiate(
            //ServicePointManager.ServerCertificateValidationCallback += (o, certificate, chain, errors) => true;

            XComosMobile.Services.XServices.Instance.AddService <XComosMobile.Services.IPlatformSystem>(new PlatformSystem());
            XComosMobile.Services.XServices.Instance.AddService <XComosMobile.Services.IDatabase>(
                (new Database()).Open("xcomos.db"));

            Xamarin.Forms.DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init();


            FFImageLoading.Forms.WinUWP.CachedImageRenderer.Init();
            this.InitializeComponent();
            this.Suspending += OnSuspending;
        }
Ejemplo n.º 10
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            Forms.SetFlags(new string[] { "CarouselView_Experimental", "SwipeView_Experimental" });

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this, new PlatformOptions()
            {
                SmallIconDrawable = Android.Resource.Drawable.abc_dialog_material_background
            });
            LoadApplication(new App());
        }
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init(this, new PlatformOptions
            {
                SmallIconDrawable = Android.Resource.Drawable.IcDialogInfo
            });

            LoadApplication(new App());
        }
Ejemplo n.º 12
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.tabs;

            Xamarin.Forms.Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this, new PlatformOptions()
            {
                SmallIconDrawable = Android.Resource.Drawable.IcDialogInfo
            });

            LoadApplication(new App());
        }
Ejemplo n.º 13
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);
            Xamarin.FormsMaps.Init(this, bundle);
            UserDialogs.Init(this);
            ImageCircleRenderer.Init();
            RoundedBoxViewRenderer.Init();
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            LoadApplication(new App());
        }
Ejemplo n.º 14
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            //Register Toasts
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            UserDialogs.Init(this);

            //Use RadioButtons
            Xamarin.Forms.Forms.SetFlags("RadioButton_Experimental");

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Ejemplo n.º 15
0
        protected override async void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            await CrossMedia.Current.Initialize();

            CrossCurrentActivity.Current.Init(this, bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            LoadApplication(new App());
        }
Ejemplo n.º 16
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.tabs;
            ToolbarResource   = Resource.Layout.toolbar;

            base.OnCreate(bundle);

            DependencyService.Register <ToastNotification>(); // Register your dependency
            // If you are using Android you must pass through the activity
            var platformOptions = new PlatformOptions();

            platformOptions.Style = NotificationStyle.Snackbar;
            ToastNotification.Init(this, platformOptions);


            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App(new AndroidInitializer(this)));
        }
Ejemplo n.º 17
0
        protected override void OnCreate(Bundle bundle)
        {
            var dbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "gt2.db");

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this, new PlatformOptions()
            {
                SmallIconDrawable = Android.Resource.Drawable.IcDialogInfo
            });

            LoadApplication(new GiveOrTake.FrontEnd.Shared.App(dbPath));
        }
Ejemplo n.º 18
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            MapServices.ProvideAPIKey(Mapkey);
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.FormsMaps.Init();

            DependencyService.Register <ToastNotification>(); // Register your dependency
            // If you are using Android you must pass through the activity
            ToastNotification.Init();

            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            //init for Scanner barcode
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 19
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            AiForms.Renderers.Droid.SettingsViewInit.Init();
            UserDialogs.Init(this);
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            LoadApplication(new App());

            this.Bootstraping();
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
#if DEBUG
            if (System.Diagnostics.Debugger.IsAttached)
            {
                this.DebugSettings.EnableFrameRateCounter = true;
            }
#endif

            Windows.UI.Xaml.Controls.Frame rootFrame = Window.Current.Content as Windows.UI.Xaml.Controls.Frame;

            // Do not repeat app initialization when the Window already has content,
            // just ensure that the window is active
            if (rootFrame == null)
            {
                // Create a Frame to act as the navigation context and navigate to the first page
                rootFrame = new Frame();

                rootFrame.NavigationFailed += OnNavigationFailed;

                Xamarin.Forms.Forms.Init(e);

                DependencyService.Register <ToastNotification>(); // Register your dependency
                ToastNotification.Init();

                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                {
                    //still_TODO: Load state from previously suspended application
                }

                // Place the frame in the current Window
                Window.Current.Content = rootFrame;
            }

            if (rootFrame.Content == null)
            {
                // When the navigation stack isn't restored navigate to the first page,
                // configuring the new page by passing required information as a navigation
                // parameter
                rootFrame.Navigate(typeof(MainPage), e.Arguments);
            }
            // Ensure the current window is active
            Window.Current.Activate();
        }
Ejemplo n.º 21
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(bundle);
            GoogleAnalytics.Current.Config.TrackingId = "<Your Trackit ID>";
            GoogleAnalytics.Current.Config.AppId      = "<Your App ID";
            GoogleAnalytics.Current.Config.AppName    = "<Your App Name>";
            GoogleAnalytics.Current.Config.AppVersion = "<Your App Version>";
            GoogleAnalytics.Current.InitTracker();
            AppDomain.CurrentDomain.UnhandledException  += CurrentDomainOnUnhandledException;
            TaskScheduler.UnobservedTaskException       += TaskSchedulerOnUnobservedTaskException;
            AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironmentOnUnhandledException;
            Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init(this, bundle);
            Context context = this.ApplicationContext;

            App.Version = context.PackageManager.GetPackageInfo(context.PackageName, 0).VersionName;
            CachedImageRenderer.Init(false);

            //if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.Internet) == (int)Permission.Granted)
            //{
            //    Toast.MakeText(this, "Internet Enabled", ToastLength.Long).Show();
            //   // Console.WriteLine("yes, internet perms enabled");
            //}
            //else
            //{
            //    Toast.MakeText(this, "Internet Disabled", ToastLength.Long).Show();
            //    //Console.WriteLine("no, internet blocked");
            //}
            var config = new FFImageLoading.Config.Configuration()
            {
                VerboseLogging                 = false,
                VerbosePerformanceLogging      = false,
                VerboseMemoryCacheLogging      = false,
                VerboseLoadingCancelledLogging = false,
                Logger = new CustomLogger(),
            };

            ImageService.Instance.Initialize(config);
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);
            LoadApplication(new App());
        }
Ejemplo n.º 22
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            var ignore = new CircleTransformation();

            //FFImageLoading initialization
            CachedImageRenderer.Init();
            var config = new FFImageLoading.Config.Configuration()
            {
                VerboseLogging                 = false,
                VerbosePerformanceLogging      = false,
                VerboseMemoryCacheLogging      = false,
                VerboseLoadingCancelledLogging = false,
                Logger = new CustomLogger(),
            };

            ImageService.Instance.Initialize(config);
            ToastNotification.Init();

            LoadApplication(new App());

            DependencyService.Register <ToastNotification>();
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // Request Permissions
                UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) =>
                {
                    // Do something if needed
                });
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null
                    );

                app.RegisterUserNotificationSettings(notificationSettings);
            }

            AppCenter.Start(Constants.AppCenter.iOS, typeof(Analytics), typeof(Crashes));

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 23
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);

            DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init(this);

            Rg.Plugins.Popup.Popup.Init(this, bundle);

            LoadApplication(new App(new Modules.DroidPlatformModule()));
            //LoadApplication(new App());

            App.UiParent = new UIParent(this);
        }
Ejemplo n.º 24
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);

            DependencyService.Register <ToastNotification>();
            // For Android pass through the activity
            ToastNotification.Init(this);

            UserDialogs.Init(this);

            //Mvx.RegisterSingleton<IUserDialogs>(() => UserDialogs.Instance);

            LoadApplication(new App());
        }
Ejemplo n.º 25
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            //register and init toast plugin
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this, new PlatformOptions()
            {
                SmallIconDrawable = Android.Resource.Drawable.IcDialogInfo
            });

            LoadApplication(new App());
        }
Ejemplo n.º 26
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.SetTheme(Resource.Style.MainTheme);
            ToolbarResource = Resource.Layout.Toolbar;

            base.SetStatusBarColor(Android.Graphics.Color.Black);

            base.OnCreate(savedInstanceState);

            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            FormsVideoPlayer.Init();

            LoadApplication(new App());
        }
Ejemplo n.º 27
0
        public static void Initialize(UIApplication app, NSDictionary options)
        {
            iOSShinyHost.Init(new ShinyAppStartup());

            GoogleClientManager.Initialize();
            FacebookClientManager.Initialize(app, options);


            Xamarin.Forms.DependencyService.Register <ToastNotification>();
            ToastNotification.Init();

            CachedImageRenderer.Init();
            FFImageLoading.FormsHandler.Init(debug: false);
            CachedImageRenderer.InitImageSourceHandler();

            // Override default ImageFactory by your implementation.
            FormsGoogleMaps.Init(Config.GoogleMapKeyiOS, new PlatformConfig
            {
                ImageFactory = new CachingImageFactory()
            });
            SharpnadoInitializer.Initialize();
            // Syncfusion
            SfButtonRenderer.Init();
            SfRotatorRenderer.Init();
            SfEffectsViewRenderer.Init();
            SfSegmentedControlRenderer.Init();
            //SfListViewRenderer.Init();
            //SfPickerRenderer.Init();
            //SfDataGridRenderer.Init();
            //SfCheckBoxRenderer.Init();
            //SfComboBoxRenderer.Init();
            //SfPullToRefreshRenderer.Init();
            //SfImageEditorRenderer.Init();
            //SfCalendarRenderer.Init();
            //SfBadgeViewRenderer.Init();
            //SfChartRenderer.Init();
            //SfBusyIndicatorRenderer.Init();
            //SfTabViewRenderer.Init();
            //SfRatingRenderer.Init();
            //SfPopupLayoutRenderer.Init();
            //SfMapsRenderer.Init();
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            SegmentedControlRenderer.Init();
            Xamarin.FormsMaps.Init(this, savedInstanceState);
            DependencyService.Register <ToastNotification>();
            ToastNotification.Init(this);

            //InputKit plugin
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);

            LoadApplication(new App());
        }
Ejemplo n.º 29
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            ParentActivityWrapper.ParentActivity = this;

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

            SetStatusBarColor(Xamarin.Forms.Color.Black.ToAndroid());

            base.OnCreate(savedInstanceState);

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
            ToastNotification.Init(this);

            LoadApplication(new App());
        }
Ejemplo n.º 30
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            InitLogger();
            RegisterServices();

            Rg.Plugins.Popup.Popup.Init();

            global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.Forms.FormsMaterial.Init();

            LoadApplication(new App());

            UINavigationBar.Appearance.Translucent = false;

            ToastNotification.Init();
            RequestToastPermissions(uiApplication);

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }