Beispiel #1
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)
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            TaskScheduler.UnobservedTaskException      += TaskSchedulerOnUnobservedTaskException;

            ApplicationBootstrapper.InitializeIfNeeds <CIC_EPXamarinIosModule>();

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

            ImageCircleRenderer.Init();

            CachedImageRenderer.Init();

            DebugServerIpAddresses.Current = "localhost"; //Set this address as your local computer IP. Eg: 192.168.1.120

            ConfigureFlurlHttp();

#if DEBUG
            TrustLocalDeveloperCert();
#endif

            SetExitAction();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        //
        // 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;

            ApplicationBootstrapper.InitializeIfNeeds <AbpZeroTemplateXamarinIosModule>();

            InstallFontPlugins();

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

            ImageCircleRenderer.Init();

            CachedImageRenderer.Init();

            FormsPlugin.Iconize.iOS.IconControls.Init();

            ConfigureFlurlHttp();

            SetExitAction();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        //
        // 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));
        }
        //
        // 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;

            ApplicationBootstrapper.InitializeIfNeeds <CoreAngularDemoXamarinIosModule>();

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

            ImageCircleRenderer.Init();

            CachedImageRenderer.Init();

            ConfigureFlurlHttp();

            SetExitAction();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
 // Launches the startup task
 protected override async void OnResume()
 {
     base.OnResume();
     ApplicationBootstrapper.InitializeIfNeeds <CruisePMSXamarinAndroidModule>();
     await CheckInternetAndStartApplication();
 }
Beispiel #6
0
 // Launches the startup task
 protected override void OnResume()
 {
     base.OnResume();
     ApplicationBootstrapper.InitializeIfNeeds <FloodCitiSenseXamarinAndroidModule>();
     StartApplication();
 }