-
Notifications
You must be signed in to change notification settings - Fork 672
Permission rational not showing on the first permission request #61
Comments
Hi @pkleczko First of all, thanks for reporting. The behaviour you are describing is how actually Android permissions work, the first time you request any permission the system will simply show the dialog asking the user for her consent. If the user requests the same permission for the second time, the system will call the I recommend you to read the official runtime permissions documentation, specially the section referring to the rationale: link |
Yes, you're rigth. I was not aware it works like this. Thanks for reply. |
Dear @Serchinastico |
@Hoss3inf you can always show any or contextual help dialog before using Dexter. |
@pedrovgs I just thought I can do it within Dexter. thanks for your reply. |
That's simple to implement and depends a lot on the user needs that we decided not to add that feature to the lib. |
Expected behaviour
onPermissionRationaleShouldBeShown(List permissions, PermissionToken token) fires always when Dexter.checkPermissions is called
Actual behaviour
Cannot understand why this happens but when I firstly call Dexter.checkPermissions with two permissions: Manifest.permission.ACCESS_FINE_LOCATION and Manifest.permission.ACCESS_COARSE_LOCATION onPermissionRationaleShouldBeShown is not called but instead dialog with permission request shows. What is more there is no "Never ask again" checkbox:
When I deny and call method second time, onPermissionRationaleShouldBeShown is called and I show my alertDialog and then permission request dialog has "Never ask again" checkbox.
Steps to reproduce
Dexter.checkPermissions(new CustomPermissionListener(), Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION);
Nexus 5, 6.0.1
Version of the library
com.karumi:dexter:2.2.2
The text was updated successfully, but these errors were encountered: