public async void OnClickedBack(object sender, EventArgs e) { var MyAppsFirstPage = new LoggedPage(); Application.Current.MainPage = new NavigationPage(MyAppsFirstPage); await Application.Current.MainPage.Navigation.PopAsync(); //Remove the page currently on top. }
public App() { InitializeComponent(); auth = DependencyService.Get <IAuth>(); if (auth.IsSignIN()) { MainPage = new LoggedPage(); } else { MainPage = new MainPage(); } }