I have the following scenario for a PhoneGap
mobile app:
navigator.app.backHistory();
. But if the previous page is the index.html, I want to close the app using navigator.app.exitApp();
My point is, after logging in, the user should never be able to land on index.html again.
Instead of doing this, do the following:
history.replaceState()
Read about manipulating the browser history . This should work with Phonegap.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.