Cordova upgrade clears local storage

2 posts, 0 answers
  1. Paul
    Paul avatar
    56 posts
    Member since:
    Jan 2006

    Posted 07 Nov 2013 Link to this post

    I have developed a few projects that targeted the 2.7 version of Cordova and take advantage of using local storage for various reasons. When I would release an update to the application, local storage would persist and not be cleared during the upgrade/re-installation of the new version of the application. (The users local storage would remain untouched)

    However, now I have changed my application to target the 3.0 version of Cordova. Upon installing this "upgraded" version of the application, local storage is cleared entirely from the previous 2.7 version application. Any thoughts on a workaround for this internal to the Icenium application, rather than having to dump the data into a database and have the user re-sync after their app upgrade?

    Thanks in advance...

  2. Steve
    Steve avatar
    10941 posts

    Posted 12 Nov 2013 Link to this post

    Hi Paul,

    What you observe is expected behavior and there is no way to avoid wiping the local storage data whenever an app is updated. As you have already figured out, you would have to save the user data on a database server (or cloud storage like Everlive) and this way it would be always available even after update.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top