How can I intercept the back button events in xamarin forms for Android and IOS and be able to show the user an alert to confirm the exit?
The objective is to intercept the 2 buttons, the navigation menu (yellow) and the device (orange)
I have seen some examples, but they are several years old.
I am using VS 2019 and the latest version of xamarin forms.
Thank you in advance for your help.