Results 1 to 6 of 6

Thread: iPhone app update with localstorage

  1. #1
    Sencha User
    Join Date
    Dec 2011
    Location
    Sacramento, California
    Posts
    75
    Vote Rating
    11
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    It should persist. If you deleted the app then localstorage would be erased also.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    8
    Vote Rating
    0
      0  

    Default 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
      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
      0  

    Default Example

    Hello Mhre,

    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
      0  

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •