Skip to content

feat: Detect why filesystem call fails #326

Open
@ersimont

Description

@ersimont

Feature Request

I would like to write specific handlers when the user intentionally denies my app access to the filesystem, letting them know that it's required for their requested operation to complete.

Description

Platform(s)

Android, since that's the only one I'm using so far :)

Preferred Solution

It would be great it the promise rejection had a reliable CODE field or similar.

Alternatives

I can check the rejection string currently to see if it matches the text "Unable to do file operation, user denied permission request". But that doesn't seem like the kind of thing that would be guaranteed to stay the same forever. Nor is it documented.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions