Skip to content

Ability to check the permissions without requesting it #543

@xsahil03x

Description

@xsahil03x

Is your feature request related to a problem? Please describe.
We currently have a voice recording flow similar to whatsApp in our SDK, we request the check for the record permission when the first time user holds the mic button. But in order to accept the permission, we lose the hold gesture.

The solution we initially thought was to just request the permission in the first hold and continue recording in the subsequent holds. but because there is no way to check the permission without requesting it. We cannot determine if it's a permission request or permission check.

Describe the solution you'd like
A simple boolean (bool request = true) or a separate method to differentiate them.

Additional context
GetStream/stream-chat-flutter#2355

Note: I am also open to create a PR if you are fine with the request.

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