~eliasnaur/gio#137: 
Requesting Permissions

In the docs for app/permission it says to use the Do method on the window to request so called "dangerous" permissions. In app/permission/storage storeage is described as such a "dangerous permission".

However as far as i can find nowhere in the docs or examples does it show gow to request a permission, someting I feel should be well documented if not even given it's own helper function.

If there allready is such documentation I would appreciate a comment on where to find it.

Status
REPORTED
Submitter
~strosel
Assigned to
No-one
Submitted
3 months ago
Updated
3 months ago
Labels
No labels applied.

~eliasnaur 3 months ago

On Sun Jun 14, 2020 at 21:33, ~strosel wrote:

In the docs for app/permission it says to use the Do method on the window to request so called "dangerous" permissions. In app/permission/storage storeage is described as such a "dangerous permission".

However as far as i can find nowhere in the docs or examples does it show gow to request a permission, someting I feel should be well documented if not even given it's own helper function.

If there allready is such documentation I would appreciate a comment on where to find it.

An Android example would be nice, as well as better documentation. Unfortunately, there is nothing simple about Android. An example of how to use Window.Do is from the Tailscale App:

https://github.com/tailscale/tailscale-android/blob/96791686fe9f8943e12eaa1ce45a5eef164c7369/cmd/tailscale/main.go#L453

-- elias

Register here or Log in to comment, or comment via email.