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

Check does not a second time #222

Closed AlexVPerl closed 4 years ago

AlexVPerl commented 5 years ago

Expected behaviour

Check & listener methods should run as many times as it is called.

Actual behaviour

Check & listener methods do not run 2nd time they are called.

Steps to reproduce

Using listener methods to redirect to another activity to show rationale. Calling .check on 2nd time does nothing.

Version of the library

Latest 5.0

Ynnck123 commented 5 years ago

I face the same issue, I fixed it with the following function in the Dexter PermissionListener

override fun onPermissionRationaleShouldBeShown( permission: PermissionRequest?, token: PermissionToken? ) { token?.continuePermissionRequest() }

Further readings: https://github.com/Karumi/Dexter#showing-a-rationale