We are developing a HTML 5 phonegap app and are using local-storage to persist application data. This works fine. However…how do we backup this data? If the device is reset the local storage will be lost. Is it included when I backup my iPhone (using iTunus) and are there android apps that can provide backup functionality? Or should we provide a server-side for our application…
Share
Local storage should only be used as a cache or for data that doesn’t need to be persisted across sessions. If it is, cool, but it should not be relied upon.
Instead, you should be persisting any required data back to your server and using local storage simply as a client-side cache.
To “back up” stuff already in local storage, simply read it out and persist it back to your server.