How to control android backbutton routes?
The default in Onsen is that the app closes/exits when the device backbutton is pressed. Is there any way to control that in Onsen to also mimic the ons-navigator action/page history? Thanks! In case of PhoneGap/Cordova, backbutton event is fired when the backbutton is pressed. Therefore, you can set the eventhandler s.t. document.addEventListener("backbutton", onBackKeyDown, false); In eventhandler function, you can call popPage method of navigator by obtaining the navigator scope s.t. function onBackKeyDown() { // Handle the back button alert("Backbutton is pressed!"); var element = document