Karumi / Dexter

Android library that simplifies the process of requesting permissions at runtime.
http://karumi.com
Apache License 2.0
5.23k stars 671 forks source link

Android 11 dismissible permission dialogs #282

Open droid-lover opened 3 years ago

droid-lover commented 3 years ago

In android 11 I noticed this flow- permissions popups are dismissible, and when the user dismisses any permission popup, we get a callback like user-selected ‘never ask again’

We need to add a check if at least anyone permission is denied earlier and RationaleShouldBeShown is false that means at least one permission is permanently denied, that time we need to show settings dialog.

I have implemented this new change w.r.to Android11 API30 for this here

pedrovgs commented 3 years ago

Hey @myJarvis thanks for reporting! Could you please describe if you are facing a bug or requesting a feature? Reading your issue description and title I'm not sure what you mean.

droid-lover commented 3 years ago

Hi, @pedrovgs Yes it's a bug in Android11 or API 30+.

Steps: Request for permission the first time. just click outside the permission request dialog. You will see the settings screen alert without even denying or deny and not ask again option selected.

Resource - a video with the bug and a fix explained in the blog.