I am facing an issue how to handle the default mobile\'s back button which checks the confirmation while exiting from the application, if I pressed the back button there sho
Platform api has a handler registerBackButtonAction.
registerBackButtonAction
You can do something like:
In app.component.ts
constructor(platform: Platform){ platform.ready().then(()=>{ platform.registerBackButtonAction(()=>this.myHandlerFunction()); }) myHandlerFunction(){ //create alert }