Backbutton android didn't work

Hello.

I’m using F7 with cordova to create an app and a faced an issue that i can’t find a answer. How can i make the backbutton (the physical button) activate the function back() ? Cause, now when i click the “backbutton” its only close the app…

Hi,

Try

document.addEventListener(“backbutton”, function() {
router.back();
}, false);

https://framework7.io/docs/view.html (router.back)
https://cordova.apache.org/docs/en/4.0.0/cordova/events/events.backbutton.html

2 Likes

I am developing the framework using my hp android tablet and the back button is not responding. I took help from hp customer support and downloaded some firmware after which it worked.