// // 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) { global::Xamarin.Forms.Forms.Init(); CoreSetup.SetupContainer(new Setup()); //AppContainer.Container.Resolve<IDatabase>().Initialize(); LoadApplication(new Core.App()); return(base.FinishedLaunching(app, options)); }
public override void OnCreate() { base.OnCreate(); AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException; //AppDomain.CurrentDomain.UnhandledException += (sender, args) => { }; CoreSetup.SetupContainer(new Setup()); AppContainer.Container.Resolve <IDatabase>().Initialize(); #if !DEBUG MobileCenter.Start(config.MobileCenterKey, typeof(Analytics), typeof(Crashes)); #endif }
public override void OnCreate() { base.OnCreate(); RegisterActivityLifecycleCallbacks(this); AndroidEnvironment.UnhandledExceptionRaiser += HandleAndroidException; //AppDomain.CurrentDomain.UnhandledException += (sender, args) => { }; CoreSetup.SetupContainer(new Setup()); AppContainer.Container.Resolve <IDatabase>().Initialize(); #if !DEBUG //MobileCenter.Start("e3bb5908-01c3-4286-811f-b07537a6a632", typeof(Analytics), typeof(Crashes)); #endif }