cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Grieve (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-6033) Android 4.4 update loses LocalStorage data
Date Tue, 25 Mar 2014 19:12:16 GMT

    [ 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)

Mime
View raw message