Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

when app enter background then return to foreground in 10 minutes, error #25

Description

@fealonelei

If my app enter background and a lot of apps run in background , it has a high level of risk to get a sqlite 3 error code 21 when app return foreground. I could not always re-capture the error, however, I think the reason is SwiftData is a singleton which has been delloc by OS when app receive memory warning. Is it possible ?
Please give me some tips to avoid it ?
what should I implement in app delegate methods, such as appDidEnterbackground .

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions