public override void WillEnterForeground(UIApplication application) { base.WillEnterForeground(application); if (!AnalyticsService.IsOptOut) { EasyTracker.Current.OnApplicationActivated(application); } Mvx.Resolve <ILocationService>().RefreshLocation(); AppSettingsUtil.HandleResetCache(_settings); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { UISynchronizationContext.Current = SynchronizationContext.Current; _settings = AppSettingsUtil.LoadSettings(); InitializeVersion(); InitializeUserDefaults(); #if ADHOC || APPSTORE InitializeGAI(); #else AnalyticsService.IsOptOut = true; #endif AppSettingsUtil.HandleResetCache(_settings); Theme.Apply(); Window = new UIWindow(UIScreen.MainScreen.Bounds); var setup = new Setup(this, Window, _settings, _version); setup.Initialize(); var startup = Mvx.Resolve <IMvxAppStart>(); startup.Start(); NavBarManager.Instance.SetNativeHidden(true, false); NavBarManager.Instance.SetHidden(false, false); Window.MakeKeyAndVisible(); Mvx.Resolve <ICloudService>(); return(true); }