public App() { var language = LanguageService.GetCurrentLanguage(); AppResources.Culture = new CultureInfo(language.GetLanguageCode()); var savedAppVersion = Portable.Helpers.Settings.AppVersion; var currentAppVersion = DependencyService.Get <IAppVersionProvider>().AppVersion; bool overwrite = savedAppVersion != currentAppVersion; RealmService.Initialize(overwrite); Portable.Helpers.Settings.AppVersion = currentAppVersion; this.InitializeComponent(); // Update Audit on startup Task.Run(UpdateService.UpdateAudit); AppCenter.Start( $"ios={IosAppCenterKey};android={AndroidAppCenterKey};", typeof(Analytics), typeof(Crashes)); Console.WriteLine("AuditUpdate. AppCenter InstallId: " + AppCenter.GetInstallIdAsync().Result); this.MainPage = new BottomTabbedPage(); }
public App() { var language = LanguageService.GetCurrentLanguage(); AppResources.Culture = new CultureInfo(language.GetLanguageCode()); RealmService.Initialize(); this.InitializeComponent(); #if RELEASE AppCenter.Start( "ios=1e7f311f-1055-4ec9-8b00-0302015ab8ae;android=6f9a7703-8ca4-477e-9558-7e095f7d20aa;", typeof(Analytics), typeof(Crashes)); #endif this.MainPage = new BottomTabbedPage(); }