capacitor-community / capacitor-community/sqlite

Database corrupted and cleared from android device

Open
#571 0 comments 1 reaction 0 assignees View on GitHub
bug/fix needs: triage
Dominant language
Swift
Stars
661
Forks
158
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.