Languages

Menu
Sites
Language
localStorage being wiped after upgrade

Hi,

I noticed that if I store data using HTML5 Local Storage it will persist as long as I keep using that version. If the user gets a new version or upgrades the app, the localstorage store (database) is wiped. I understand the technical reasoning behind this but frameworks such as Phonegap have a wrapper that makes the data persist.

What would be the recommended path when you want to persist data between upgrades?

Thank you,

-Daniel

Responses

4 Replies
Marco Buettner
If the user update the app to newer version the localStorage wouldn't wipe. If you install newest version via SDK your previously installed version will be delete before. Thats also includes the deleting of related paths like localStorage
Alexander AVSukhov

Hello,

I have tested update app using 

wrt-installer -i myApp.wgt

and localStorage values ​​are stored in the new version

Raghavendra Reddy Shiva

Use the option as, "-iu" for updating the installed application.

>> wrt-installer -iu myapp.wgt

Daniel Tse

Thank you, for your replies. I've been testing it only with the Emulator via the Tizen SDK/IDE.