Open NinoScript opened 7 years ago
Thanks for the note @NinoScript, I'll leave this open until we come to a conclusion on if this is a supported use case. Do you want to link your fork here too?
Please link the fork, thanks!
Sorry, we have it in a private repo, but really, the only change is to make showAlert() public, I guess I'll do it here in GitHub, give me a minute
There you go: https://github.com/nickoneill/PermissionScope/pull/234
Feature request
Add a way to force the dialog to open
Rationale
I have 2 use cases for PermissionScope:
Only ask for permissions that the user hasn't actively accepted or denied, which is fairly easy, I just call
addPermission
on those whosePermissionStatus
is.unknown
.Open a settings window where the user can accept, deny or change previously configured permissions, so I call
addPermission
on all permissions I'm using, but then, the dialog won't show up by callingshow()
.I know the second use case isn't the intended use, but it works great!
How to implement it
In my fork, I just made
showAlert()
public to support that use case.If this is not an accepted use case, at least this GitHub Issue will document it, and the simple implementation will help anybody who really needs it like myself. 😁