I need to store some values from my javascript code on the html5 local storage everytime the home button is pressed, before my app (Phonegap/iOS) exits. As I understand, the pause() and resume() phonegap events are not fired on iOS (iOS quirks). How can I store javascript values when the device home button is pressed?
You can store values in localStorage right at the time when you know them, and do not wait until user presses Home.
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