So I've created a single page app using Phonegap and I'm using divName.hide()
and divName.show()
to switch between the app's pages. However, as expected, the back button of the phone (I'm using an Android phone) is not functioning as I would have wished, meaning it's exiting the app instead of going back to the previous state.
So I searched about it and I came across with a few posts such as:
"Using the back button to revert to the previous state of the page"
and: "Back Button for a Single Paged Website", but after reading them all and the common tutorials on HTML5 History API and history.js, I can't decide which option will work better (or work at all) for an app built with Phonegap and running on android.
Could you give me an advise on what is the better solution for my situation? Also, any additional guides and tutorials regarding this matter will be very helpful.
Asked
Active
Viewed 664 times
2
-
Hey, it's been over a day, any suggestions? – DMEM Jun 19 '14 at 12:48
-
Still nothing I guess :-( – DMEM Jun 23 '14 at 15:32
-
wondering.. which approach did you take? – Daniel Birowsky Popeski Mar 24 '17 at 10:02