Skip to content

Allow iOS consumers to setup for us to call beginBackgroundTask and endBackgroundTask #1750

Open
@poljar

Description

@poljar

On iOS the OS might kill us if we're in the middle of a database write[1] while the OS tries to put the application into the background.

Since all the database handling is happening in the Rust SDK, the client doesn't know when a write might start. If the client is using only the crypto crate, it might guess fairly well when this is going to happen, but otherwise not.

We should provide a trait that people can implement, even over FFI[2], and we'll call the method each time before and after we commit things to the store.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions