LocalStorage and PhoneGap persistance

Apple decided to store data from the localStorage of a WebView in Caches since iOS 5.1. Sadly those caches are purged from time to time so this does not really enable a persistence. After wrestle with that for some time today I found the solution in a BlogPost here.

The essence is changing the paths for localStorage, etc. in the AppDelegate.

Works great!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s