Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 public void SetUp()
 {
     FirebaseHelper = new FirebaseHelper();
     AuthService    = new FirebaseAuthenticationService();
 }