I am using
Ionic version 5.4.16 and i am trying to close the app by hardware back button with a alert message for confirm to exit. I have checked a lot of tutorials for the same and everywhere i saw 2 ways to achieve that –
But none of these option are working in Ionic 5, its not recognizing the function exitApp(). So how to achieve the same if anyone has faced the same issue do suggest, thank you.