private async Task HandleNextStepAsync() { await ShowNotificationIfNecessary(ActivityType.Connectivity, ShowBluetoothNotification); if (SelectedActivityIndex == OnBoardingActivities.Count) { Xamarin.Essentials.Preferences.Set("OnBoarded", true); await _mainRoute.ExecuteAsync(_navigationService); } }
private Task ShowFirstPageAsync(INavigationService navigationService) { if (_authenticationInfoService.IsAuthenticated()) { if (Xamarin.Essentials.Preferences.Get("OnBoarded", false)) { return(_mainRoute.ExecuteAsync(navigationService)); } else { return(_onboardingRoute.ExecuteAsync(navigationService)); } } else { return(_createProfileRoute.ExecuteAsync(navigationService)); } }