In my app, when user press Login button on the HomePage, I need to show the LoginPage.
On my home page I call "await Navigation.PushAsync(new LoginPage());" in the command for the Login button. When the login completed, I call "await this.Navigation.PopAsync();" in LoginPage.
It supposed to remove LoginPage and go back to HomePage. But it closes the application instead.
If I remove await from the PopAsync call, the LoginPage stays on screen. But, I found that the HomePage was removed from stack. Pressing back button on the simulator, the app is closed.
Could anyone tell me the right way to push and pop pages.