You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Angela Fowler (JIRA)" <ji...@apache.org> on 2014/06/02 08:40:02 UTC
[jira] [Commented] (CB-6033) Android 4.4 update loses LocalStorage
data
[ https://issues.apache.org/jira/browse/CB-6033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015204#comment-14015204 ]
Angela Fowler commented on CB-6033:
-----------------------------------
For 4.3 the location is /data/data/com.xyz/app_database/localstorage/file__0.localstorage.
In the ItemTable, the key and value are both text.
For 4.4 the location is /data/data/com.xyz/app_webview/Local Storage/file__0.localstorage.
In the ItemTable, the key is text and the value is blob.
On a Nexus simulator the 4.3 app_database folder is still there in 4.4 but appears to be empty in DDMS. It is possible to return to 4.3 and obtain the old file on simulator. I don't have a device to try this on.
> 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
> Attachments: KitKatLocalStorage2.PNG
>
>
> 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)