1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    Sacramento, California
    Posts
    75
    Vote Rating
    9
    gypsie will become famous soon enough

      0  

    Default iPhone app update with localstorage

    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    It should persist. If you deleted the app then localstorage would be erased also.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.com

    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.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    moby_dick is on a distinguished road

      0  

    Default Data lost

    Data lost


    Hello,

    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

    Greets
    Tim

  4. #4
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    146
    Vote Rating
    10
    Möhre will become famous soon enough

      0  

    Default


    Probably the new iOS was the reason:
    http://www.sencha.com/forum/showthread.php?188163-iOS-5.1-Native-and-LocalStorage-(And-SQLite)

    S
    encha Touch 2.0.0/2.0.1 has no solution, but Phonegap has.

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    moby_dick is on a distinguished road

      0  

    Default Example

    Example


    Hello Möhre,

    thank you. This pointed me in the right direction. Do you got an example how to use phonegap localstorage instead of ST2 localstorage?

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
    moby_dick is on a distinguished road

      0  

    Default ST2 using window.localstorage?

    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!

    Cheers Tim