Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to difference permission state "prompt" from "denied" #35

Open
fjc2112 opened this issue Jun 23, 2023 · 1 comment
Open

How to difference permission state "prompt" from "denied" #35

fjc2112 opened this issue Jun 23, 2023 · 1 comment

Comments

@fjc2112
Copy link

fjc2112 commented Jun 23, 2023

The permission check method returns true or false, but false could be "prompt" when permissions have not yet been requested or "denied" when the user has denied them. How can they be differentiated?

@qmarcos
Copy link

qmarcos commented May 2, 2024

I think there is no way to know if the false comes from the user current interaction with the permissions dialog or if it comes from a previous interaction (with the provided methods). Also I think there is no way to force to prompt the dialog again (this is the common OS behaviour I think).

Anyway, the result is the same so maybe you don't need to know how the user comes to this situation. At the end, you need to inform the user to allow the microphone manually from app OS settings to be able to use the "app feature" which uses the microphone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants