Skip to content Skip to sidebar Skip to footer

In Cordova 1.8.1 - Android History.back() Not Working

I am developing a phonegap application in which the app loads the external url(http://example.com) into webview. When I navigate through the screen using window.location.href. I ca

Solution 1:

It is the same problem: If jquery mobile does not create history entries, the back-button from the android phone will terminate the app, because, there is no Activity to go back to.

If you go forwrd through your app, make a pushState: https://developer.mozilla.org/en-US/docs/DOM/Manipulating_the_browser_history

If you have history entries, your app will not close and hopefully the soft-back button will work.

Post a Comment for "In Cordova 1.8.1 - Android History.back() Not Working"