Database corrupted and cleared from android device
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, angular, sqlite
- 领域
- databases, mobile-dev
调研方向
首先检查 Android 原生后台服务,以及 Ionic 应用和原生代码共享的数据库访问。OneSignal 通知或定期后台调用运行时,重现报告的错误“database disk image is malformed”和“database not open”。完成的标准是确定损坏原因,并记录经过验证的修复方案或预防措施。
由索引模型根据 Issue 内容生成。
描述
I have an ionic angular capacitor app currently available for android and web platforms.
The issue has been generated in live env. In dev env, I have tried to regenerate the case but it hasn't happened yet.
I have used onesignal library for push notifications and in android to receive notifications & to call apis in the background, I have added code from native. So I am using a database from both the ionic and native end.
Also, I have added periodic call for background service after certain amount of time at android native part.
For some users, in my app suddenly they got some error and the database has been cleared. I tried to get some logs which are mentioned below.
Error: Query: in selectSQL cursor database disk image is malformed
Error: Query: in selectSQL cursor database not open
- 主要语言
- Swift
- 星标
- 663
- 派生
- 159
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
capacitor-community/sqlite 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
capacitor-community/sqlite#700 · 1 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 25/100
capacitor-community/sqlite#693 · 7 个 reaction ·
-
bug/fix needs: triage
难度 3/5 1-2 天 新手友好度 68/100
capacitor-community/sqlite#690 ·
-
feature needs: triage
难度 3/5 1-2 天 新手友好度 55/100
capacitor-community/sqlite#689 ·
-
bug/fix needs: triage
难度 3/5 1-2 天 新手友好度 45/100
capacitor-community/sqlite#685 ·
查看 capacitor-community/sqlite 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
openwallet-foundation/multipaz#2040 ·
维护者通常 1 天内回复
-
area:build enhancement good first issue P2
难度 2/5 1-3 小时 新手友好度 92/100
uttrflow/uttrflow-swift#3212 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 90/100
vorssaint/vorssaint-utils#2481 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 1 天内回复