Skip to content

Database corrupted and cleared from android device #571

Open
@jahanvi-droid

Description

@jahanvi-droid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions