[ 
https://issues.apache.org/jira/browse/CB-6033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13946996#comment-13946996
 ] 

Andrew Grieve commented on CB-6033:
-----------------------------------

The KK webview and the pre-KK webview use different formats (no idea how they 
are different) to store data. Upon upgrade of a device, the KK webview just 
considers the files corrupt and deletes them.

For Cordova to fix this, we'd need to extract the data from the file ourselves 
before the webview deletes it, and then re-insert using the new webview.

Does this affect WebSQL as well? Or just localstorage?

> Android 4.4 update loses LocalStorage data
> ------------------------------------------
>
>                 Key: CB-6033
>                 URL: https://issues.apache.org/jira/browse/CB-6033
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Darryl Pogue
>            Assignee: Andrew Grieve
>
> This appears to be a result of the switch from old WebView to the new 
> Chrome-powered WebView.
> If an app is installed in 4.3 and saves data to LocalStorage (and possibly to 
> WebSQL) and then the device is updated to 4.4, that data appears to be lost.
> Some threads regarding the problem:
> http://www.sencha.com/forum/showthread.php?278158-localStorage-cleared-when-upgrading-to-KitKat-(Android-4.4)
> https://groups.google.com/forum/#!msg/phonegap/rNizMKW5GaA/g1XBBco2otMJ



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to