/// <summary> /// Checks if credentials are available and not expired, /// which are then used to restore the sign in status. /// Registers the user for Push notifications. /// The user is not actively taken to a login page. /// </summary> public async Task RestoreSignInStatusAsync() { var user = await _authenticationHandler.RestoreSignInStatus(); if (user != null) { AppEnvironment.Instance.CurrentUser = user; // To enable existing users to register for Push notifications without having to // log out and log in again. RegisterForNotifications(); } }