I'm using phonegap build to publish apps, and it looks like localstorage is getting cleared on ios devices between updates.
Is there any way to stop or debug this behavior? Aside from web syncing, how do I persist data locally in a durable way?
I'm not observing this behavior on android devices.
It's possible that Apple stores cache like localStorage in either the Caches or tmp directory for your app. If that's the case, then such data is vulnerable to automatic recycling.
According to Marco of Instapaper fame:
Unfortunately this means that the second part of your question -- how to store data without syncing and without it getting cleared between updates -- might be tough if not impossible using Phonegap.