1

Recently I adopted cordova's crosswalk plugin to ensure a uniform and performant HTML5 environment across android devices. Everything was working fine until I deploy the application. That's when I noticed that all existing settings from the native browser, which was being used by the cordova webview were gone! Our localStorage was now in a different browser - the chromium browser which is served by crosswalk project.

Now I'm asking myself what will happen if the crosswalk project updates it's internal browser to a new chromium browser version? Will I lose the localStorage data once again?

Here are some references that I had look at while researching into the subject:

Community
  • 1
  • 1
Lothre1
  • 3,523
  • 7
  • 43
  • 64

2 Answers2

1

Probably yes, you will lose the data. Also updating the device SO can cause the loss of data. I had the same problem. You should consider to use sqlite database to persist permanently your data.

manzapanza
  • 6,087
  • 4
  • 39
  • 48
  • That was exactly what I was planning to do if the answer to my question was positive. The only thing that concerns me is that SQLite is also connected to browser isn't it? Or did you mean using https://github.com/litehelpers/Cordova-sqlite-storage plugin for that purpose? – Lothre1 Oct 28 '16 at 15:47
  • WebSQL is "connected" to the browser. But to use SQLite you need a plugin like that you mentioned. – manzapanza Oct 28 '16 at 20:46
0

The issue that was concerning this subject was closed last week. "Not able to migrate the existing webview data (localstorage/websql) to crosswalk"

Check it out here: https://crosswalk-project.org/jira/browse/XWALK-7368

Lothre1
  • 3,523
  • 7
  • 43
  • 64