Exit app on back button press for a specific page



  • I was wondering if there is a way to exit the app on back press for a specific page. This should not take into account of the page stack. I know right now if there aren’t any pages in the stack then it will exit the app but if there is then the back button will pop to the previous page.


  • Onsen UI

    @Norton-Gumbo You can use onDeviceBackButton property in ons-page or ons-navigator and run whatever you need to do there (navigator.app.exitApp();).


Log in to reply