I’ve been trying to make the app to exit when there is no modals, sheets, etc. open. My app doesn’t have any routes so I don’t need “Back” button to go back in history.
I tried to fiddle with the “backbutton” event handler on cordova-app.js by rewriting all if conditions to else-if blocks, but had no luck. Any ideas or suggestions?