View Full Version : iPhone app update with localstorage
3 Feb 2012, 12:41 AM
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
It should persist. If you deleted the app then localstorage would be erased also.
5 Jun 2012, 12:21 AM
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
Probably the new iOS was the reason:
S (http://www.sencha.com/forum/showthread.php?188163-iOS-5.1-Native-and-LocalStorage-(And-SQLite))encha Touch 2.0.0/2.0.1 has no solution, but Phonegap has.
5 Jun 2012, 4:32 AM
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
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! :D
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.