This is a migrated thread and some comments may be shown as answers.

Cordova upgrade clears local storage

1 Answer 81 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 07 Nov 2013, 01:42 PM
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...

Paul

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Nov 2013, 09:42 AM
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.

Regards,
Steve
Telerik
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.
Tags
General Discussion
Asked by
Paul
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or