简体   繁体   English

Phonegap - Android - localStorage数据丢失

[英]Phonegap - Android - localStorage data loss

I've written an Android app using Phonegap which stores data in localStorage while 'offline' and allows the user to upload the data when GSM or WiFi are available. 我使用Phonegap编写了一个Android应用程序,它在“离线”时将数据存储在localStorage中,并允许用户在GSM或WiFi可用时上传数据。

Everything [normally] works fine, I've tested on a variety of phones and tablets and several versions of Android from Gingerbread to JellyBean and the app has been used by several people during trials. 一切[通常]工作正常,我已经在各种手机和平板电脑以及从Gingerbread到JellyBean的几个版本的Android上进行了测试,并且该应用程序在试用期间已被多个人使用。 BUT I've had two occasions on a Motorola XOOM2 ME running Honeycomb where all localStorage data suddenly disappears for no apparent reason. 但是我在运行Honeycomb的摩托罗拉XOOM2 ME上有过两次,所有localStorage数据都突然消失了。

Question #1: Anybody else having this problem, any ideas of the cause? 问题1:其他人有这个问题,有什么想法吗?

Question #2: Are the data still on the device somewhere and if so is it accessible? 问题2:设备上的数据是否仍然存在,如果是,可以访问?

Any clues/help would be great. 任何线索/帮助都会很棒。

jon 乔恩

如果您发现使用它有任何困难,请使用sqlite数据库进行脱机使用而不是localStorage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM