/// <summary> /// Finished the launching. /// </summary> /// <param name="app">The app.</param> /// <param name="options">The options.</param> /// <returns>True or false.</returns> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { this.window = new UIWindow(UIScreen.MainScreen.Bounds); var presenter = new TouchViewPresenter(this.window); var setup = new Setup(this, presenter); setup.Initialize(); Mvx.Resolve <CodeFramework.Core.Services.IErrorService>().Init("http://sentry.dillonbuchanan.com/api/7/store/", "646913784b3d4d85ad04a03d2887f48e ", "872ee1da3b27408b841e7587bf549a22"); var iRate = MTiRate.iRate.SharedInstance; iRate.AppStoreID = 551531422; // Setup theme Theme.Setup(); var startup = Mvx.Resolve <IMvxAppStart>(); startup.Start(); this.window.MakeKeyAndVisible(); return(true); }
/// <summary> /// Finished the launching. /// </summary> /// <param name="app">The app.</param> /// <param name="options">The options.</param> /// <returns>True or false.</returns> public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var iRate = MTiRate.iRate.SharedInstance; iRate.AppStoreID = 707173885; this.window = new UIWindow(UIScreen.MainScreen.Bounds); var presenter = new TouchViewPresenter(this.window); var setup = new Setup(this, presenter); setup.Initialize(); Mvx.Resolve <CodeFramework.Core.Services.IErrorService>().Init("http://sentry.dillonbuchanan.com/api/5/store/", "17e8a650e8cc44678d1bf40c9d86529b ", "9498e93bcdd046d8bb85d4755ca9d330"); // Setup theme Theme.Setup(); if (options != null) { if (options.ContainsKey(UIApplication.LaunchOptionsRemoteNotificationKey)) { var remoteNotification = options[UIApplication.LaunchOptionsRemoteNotificationKey] as NSDictionary; if (remoteNotification != null) { HandleNotification(remoteNotification, true); } } } var startup = Mvx.Resolve <IMvxAppStart>(); startup.Start(); this.window.MakeKeyAndVisible(); InAppPurchases.Instance.PurchaseError += HandlePurchaseError; InAppPurchases.Instance.PurchaseSuccess += HandlePurchaseSuccess; var features = Mvx.Resolve <IFeaturesService>(); // Automatic activations in debug mode! #if DEBUG Mvx.Resolve <CodeFramework.Core.Services.IDefaultValueService>().Set(FeatureIds.PushNotifications, true); #endif // Notifications don't work on teh simulator so don't bother if (MonoTouch.ObjCRuntime.Runtime.Arch != MonoTouch.ObjCRuntime.Arch.SIMULATOR && features.IsPushNotificationsActivated) { const UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge; UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); } return(true); }