Ejemplo n.º 1
0
        protected override void OnStart()
        {
            // if we want to force users to update to a new version, we can send a silent push notification
            // with the version that is no longer supported, and then compare that here
            var deprecatedVersion = Xamarin.Essentials.Preferences.Get("DeprecatedVersion", string.Empty);

            if (Xamarin.Essentials.VersionTracking.CurrentVersion == deprecatedVersion)
            {
                MainPage = new PleaseUpdateAppPage();
            }
            else
            {
                SessionManager.Instance.OnSessionExpired = HandleSessionExpired;
                SessionManager.Instance.StartTrackSessionAsync();

                MainPage = new ChecksPage();
            }
        }
Ejemplo n.º 2
0
        public App()
        {
            InitializeComponent();

            MainPage = new ChecksPage();
        }