public App() { InitializeComponent(); if (!DesignMode.IsDesignModeEnabled) { DataService = CloudFirestoreSerivice.GetInstance(); AuthService = FirebaseAuthenticationService.GetInstance(); } string username = GetUserEmail(); string password = Preferences.Get(Constants.PASSWORD_PREFERENCE, string.Empty); if (!string.IsNullOrEmpty(username) && !string.IsNullOrEmpty(password)) { MainPage = new AppMasterDetailPage();; } else { MainPage = new LoginPage(); } }
public void SetUp() { FirebaseHelper = new FirebaseHelper(); AuthService = new FirebaseAuthenticationService(); }