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)
        {
            // HockeyApp
            var manager = BITHockeyManager.SharedHockeyManager;

            manager.Configure("1578f0ce30e440b98f4478e239d38dd6");
            manager.StartManager();
            HockeyApp.MetricsManager.TrackEvent("Feedback");
            manager.Authenticator.AuthenticateInstallation(); //Obsolete for crash only builds (assuming we're using it for more)

            // Azure
            CurrentPlatform.Init();
            SQLitePCL.CurrentPlatform.Init();

            // WeChat
            WXApi.RegiserApp("wx8b14701dca600e63");
            DependencyService.Register <ILoginServiceWeChat, WeChatService>();

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

            // Push Notifications
            App appToLoad = new App();

            //if (!appToLoad.MockData)
            //{
            //	var pushSettings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet());
            //	UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings);
            //	UIApplication.SharedApplication.RegisterForRemoteNotifications();
            //}

            // Grial
            Appearance.Configure();
            GrialKit.Init(new ThemeColors(), "airmily.iOS.GrialLicense");

            // Launch
            LoadApplication(appToLoad);

            UIApplication.SharedApplication.ApplicationSupportsShakeToEdit = true;
            return(base.FinishedLaunching(app, options));
        }