Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing localStorage when home button is pressed in Phonegap/iOS

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?

like image 298
Gabriel Mendez Avatar asked Aug 27 '12 22:08

Gabriel Mendez


1 Answers

You can store values in localStorage right at the time when you know them, and do not wait until user presses Home.

like image 54
Victor Avatar answered Nov 14 '22 23:11

Victor