You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.
Only ask for permissions that the user hasn't actively accepted or denied, which is fairly easy, I just call addPermission on those whose PermissionStatus 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 calling show().
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. 😁
The text was updated successfully, but these errors were encountered:
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?
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. 😁
The text was updated successfully, but these errors were encountered: