Closed WonderCsabo closed 3 years ago
Thank you for your suggestion and that makes a lot of sense! Would you mind open a PR? 👀
I try to find the time to do it!
Does this issue exist for Kotlin only or Java is suffered to it too?
I experienced it using Java. I think this issue is language independent.
actually if permission is denied permanently, app should allow user to go to settings and rectify it, since it is good UX
let us close the issue as:
we're still welcome for PR.
Overview
The library ask for permissions even if the user permanently denied it before (checked "Do not ask again"). This adds an unnecessary call, and also notifies the app about a user action which is not happening (the permission dialog is not shown actually).
Expected
If we detekt the user already denied the permission with never ask again, we should not call
requestPermissions()
.Actual
Currently we always call
requestPermissions()
, regardless the user denied it permanetly before or not.Pseudo solution