예제 #1
0
        protected override async void OnStart()
        {
            AppCenter.Start("android=be9ae83a-464e-4bd3-9d16-bba27c49a964;" +
                            "uwp={Your UWP App secret here};" +
                            "ios={01f2bb76-98cd-4784-bd90-b81656772444}",
                            typeof(Microsoft.AppCenter.Analytics.Analytics), typeof(Crashes));
            if (await Crashes.HasCrashedInLastSessionAsync())
            {
                await _pageService.DisplayAlert("Crash", "Application has crashed", "OK");
            }
            if (_isCartTableCreated == false)
            {
                await _sqLiteService.CreateTableAsync();

                await _pageService.SetIsCartTableCreated(true);
            }
        }