Exemple #1
0
        protected override async void OnStart()
        {
            if (auth.IsSignIn())
            {
                User u = await userRepository.GetOneAsync(auth.GetID());

                MainPage = new MainPage(u);
            }
            else
            {
                MainPage = new LoginPage();
            }
        }
        public App()
        {
            InitializeComponent();

            auth = DependencyService.Get <IFirebaseAuthentication>();
            if (auth.IsSignIn())
            {
                MainPage = new MainPage();
            }
            else
            {
                MainPage = new LoginPage();
            }
        }