Skip to content

Commit 3e9e1fb

Browse files
authored
Add a warning about Android and check()
1 parent bb63bd1 commit 3e9e1fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ type PermissionStatus = 'unavailable' | 'denied' | 'limited' | 'granted' | 'bloc
700700

701701
Check one permission status.
702702

703+
_⚠️  Android will never return `blocked` after a `check`, you have to request the permission to get the info._
704+
703705
```ts
704706
function check(permission: string): Promise<PermissionStatus>;
705707
```
@@ -847,6 +849,8 @@ requestNotifications(['alert', 'sound']).then(({status, settings}) => {
847849

848850
Check multiples permissions in parallel.
849851

852+
_⚠️  Android will never return `blocked` after a `check`, you have to request the permission to get the info._
853+
850854
```ts
851855
function checkMultiple<P extends Permission[]>(
852856
permissions: P,

0 commit comments

Comments
 (0)