Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Database corrupted and cleared from android device

未关闭
#571 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, angular, sqlite

调研方向

首先检查 Android 原生后台服务,以及 Ionic 应用和原生代码共享的数据库访问。OneSignal 通知或定期后台调用运行时,重现报告的错误“database disk image is malformed”和“database not open”。完成的标准是确定损坏原因,并记录经过验证的修复方案或预防措施。

由索引模型根据 Issue 内容生成。

描述

bug/fix needs: triage

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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

capacitor-community/sqlite 的其他 Issue

查看 capacitor-community/sqlite 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。