Skip to content

Commit

Permalink
Add a warning about Android and check()
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek authored Aug 10, 2022
1 parent bb63bd1 commit 3e9e1fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ type PermissionStatus = 'unavailable' | 'denied' | 'limited' | 'granted' | 'bloc

Check one permission status.

_⚠️  Android will never return `blocked` after a `check`, you have to request the permission to get the info._

```ts
function check(permission: string): Promise<PermissionStatus>;
```
Expand Down Expand Up @@ -847,6 +849,8 @@ requestNotifications(['alert', 'sound']).then(({status, settings}) => {

Check multiples permissions in parallel.

_⚠️  Android will never return `blocked` after a `check`, you have to request the permission to get the info._

```ts
function checkMultiple<P extends Permission[]>(
permissions: P,
Expand Down

0 comments on commit 3e9e1fb

Please sign in to comment.