I am developing a cross platform application using Xamarin.Forms.
I have two pages page1 and page2.
When moving from page2 to page1, using Navigation.PopAsync, I need to show an alert dialog to let the user confirm the action. Only after the user confirms, I need to pop the page.
I need to trap the actions of both the 'Home' button as well as the 'Back' button in android.
How can this be done ?