Skip to content

Does not work in Android background tasks #51

@amake

Description

@amake

If you try to call readFile from a background task e.g. implemented with flutter_workmanager, it will fail with "Illegal state, expected activity to be there". This is because the plugin assumes that it will have been attached to an activity before being used.

In fact an activity is only required for operations that launch other activities (open file, create file).

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