I am developing a iphone app using phonegap. Now I want to maintain a session state when the app goes into the background. I want to persist that state even if the app gets killed by the OS. (Just consider saving some variables in javascript when the app goes into background)
Is there some way I can do that? Does the UIWebView allows javascript to execute when the app is moving to background?
Thanks
I donĀ“t think that there is such an event, so I would suggest that you always save your state if you change it within your app. So you dont have to save while closing the app.