3 Feb 2012 12:41 AM #1
iPhone app update with localstorage
Could anyone tell me what happens to data in local storage when iPhone app is updated through the Apple's app store? Will the data persist after the update or will it get errased? thanks
3 Feb 2012 6:39 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
It should persist. If you deleted the app then localstorage would be erased also.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
5 Jun 2012 12:21 AM #3
at this moment I launched a new version of my app at the app store. But after some users updated my app they told me that the storage was flushed? Will this happen now every time if I provide an update??
I'm using ST2 -> localstorage
5 Jun 2012 3:14 AM #4
5 Jun 2012 4:32 AM #5
thank you. This pointed me in the right direction. Do you got an example how to use phonegap localstorage instead of ST2 localstorage?
5 Jun 2012 6:08 AM #6
ST2 using window.localstorage?
Ok, I think I got it.
ST2 uses window.localstorage to access the webkit localstorage. And if I wrap my ST2 app with phonegap, I automatically make use of phonegaps localstorage functionallity. So if I implement phonegap 1.7.0 instead of phonegap 1.5.0 the problem should be solved, right?
Sorry for this question, but I didn't found any solution to test if my next update will flush the localstorage again... and my users will kill me if it do so!