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

False PermanentlyDenied result in specific cases #13

Open
mickele opened this issue Oct 16, 2024 · 1 comment
Open

False PermanentlyDenied result in specific cases #13

mickele opened this issue Oct 16, 2024 · 1 comment

Comments

@mickele
Copy link

mickele commented Oct 16, 2024

As of Android 12 (IIRC), there's another action the user can take when they see the permission dialog: the back button.

Pressing back on the first time a permission dialog is shown, doesn't mean the user denied a permission (even though the permission will not be granted of course), as so, the flag shouldShowRationale will return false and the library will falsely identify it as "permanently denied".

I don't think it's possible to properly identify if the permission was permanently denied using the current Android APIs.

@eygraber
Copy link
Owner

eygraber commented Oct 16, 2024

There's a discussion about this happening in google/accompanist#1793.

Currently waiting to hear back if there's any way to detect this state.

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