简体   繁体   中英

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.

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. BUT I've had two occasions on a Motorola XOOM2 ME running Honeycomb where all localStorage data suddenly disappears for no apparent reason.

Question #1: Anybody else having this problem, any ideas of the cause?

Question #2: Are the data still on the device somewhere and if so is it accessible?

Any clues/help would be great.

jon

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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