public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { Rg.Plugins.Popup.Popup.Init(); Forms.Init(); XamEffects.iOS.Effects.Init(); CarouselViewRenderer.Init(); LoadApplication(new App()); AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; DisplayCrashReport(); return(base.FinishedLaunching(uiApplication, launchOptions)); }
// // 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) { AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException; TaskScheduler.UnobservedTaskException += TaskSchedulerOnUnobservedTaskException; Forms.SetFlags("CollectionView_Experimental"); ApplicationBootstrapper.InitializeIfNeeds <FloodCitiSenseXamarinIosModule>(); SharpnadoInitializer.Initialize(); Forms.Init(); ImageCircleRenderer.Init(); FormsGoogleMaps.Init("AIzaSyA_4G_We4nEDQ-R3mfipus-bIM1lHAMbUc"); FormsGoogleMapsBindings.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); ConfigureFlurlHttp(); PlotViewRenderer.Init(); SetExitAction(); Material.Init(); Rg.Plugins.Popup.Popup.Init(); if (options == null) { LoadApplication(new App(false)); } else { LoadApplication(new App(options.ContainsKey(new NSString(ApsNotificationKey)))); } FacebookClientManager.Initialize(app, options); ProcessNotification(options, true); if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { _locationManager.RequestAlwaysAuthorization(); } if (UIDevice.CurrentDevice.CheckSystemVersion(9, 0)) { _locationManager.AllowsBackgroundLocationUpdates = true; } RegisterForRemoteNotifications(); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); FormsMaps.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); ViewGesturesRenderer.Init(); Firebase.Core.App.Configure(); MapServices.ProvideAPIKey(MapsApiKey); App.ScreenWidth = UIScreen.MainScreen.Bounds.Width; App.ScreenHeight = UIScreen.MainScreen.Bounds.Height; DependencyService.Register <IPhoneService, PhoneService>(); DependencyService.Register <IImageService, ImageService>(); LoadApplication(new App()); InitPushNotifications(options); return(base.FinishedLaunching(app, options)); }