I have a cordova app and I captured the backbutton with this code:
document.addEventListener("backbutton", function (e) {
backPage();
} , false);
backPage() is a function to go back in previous page. Running debug build I see the back page for a moment but then the app goes in pause and the activity disappears. I want that activity doesn't go in pause but it must be visible to the user.
I have had the same issue. Just call
navigator.app.overrideButton("backbutton", true);
before registering the backbutton-listener. It should work then.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With