I am using Crosswalk in my ionic app to boost performance on Android devices. The problem I have is that Crosswalk does not seem to be able to read values I set in localStorage. When I removed crosswalk and tried the app again, I was able to read the values.
I 'googled' and found this link: https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview1. It says that one of the drawbacks of Crosswalk is that "Crosswalk WebView stores data (IndexedDB, LocalStorage, etc) separately from System WebView". It suggests that "you'll need to manually migrate local data when switching between the two". How would I be able to migrate the data to Crosswalk so I can access it?
I am using Crosswalk version 12.41.296.5 by the way! Thanks guys!
I solved my own problem after so long. Instead of using
window.localStorage
, I added the Angular-LocalForage module to my project.Angular-LocalForage
is an Angular wrapper for the localForage storage library developed by Mozilla. The data now persists across app reset.