完整数据丢失Ionic / Cordova LocalStorage和Websql iOS 8.4.1 [英] Complete data loss Ionic / Cordova LocalStorage and Websql iOS 8.4.1

查看:318
本文介绍了完整数据丢失Ionic / Cordova LocalStorage和Websql iOS 8.4.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是使用Ionic / Cordova 5.0.0构建的 - 使用SQLite(PouchDB)获取大部分数据,使用localStorage获取首选项。

My app is build with Ionic / Cordova 5.0.0 - Using SQLite (PouchDB) for the majority of the data, and localStorage for preferences and what not.

在300多名iOS用户中,我有4位用户报告完全数据丢失。该应用程序只是重置为原始状态,就像Localstorage和Websql数据完全被炸毁一样。所有这些用户都在iOS上运行8.4。*

Out of 300+ iOS users, I've had 4 users report complete data loss. The app simply reset to the original state as if Localstorage and the Websql data was blown out completely. All of these users are on iOS and running 8.4.*

我试图通过手动删除所有localstorage重现问题,这会按预期重置应用程序,但是SQLite数据仍然存在。我无论如何都无法弄清楚重现这一点,更不用说弄清楚它是如何发生的。

I've tried to reproduce the problem by manually deleting all localstorage, which resets the app as expected, but the SQLite data remains. I simply cannot figure out anyway to reproduce this, let alone figure out how it could be happening.

注意:我没有来自Android的任何报告。

Note: I haven't had any reports from Android.

任何想法?

推荐答案

正如我最近发现的那样,当设备空间不足时,iOS会擦除localstorage。

As I've recently discovered, iOS wipes localstorage when the device is low on space.

这篇关于完整数据丢失Ionic / Cordova LocalStorage和Websql iOS 8.4.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆