Skip to content

Commit 3f6c91c

Browse files
Add docs
1 parent f5299b7 commit 3f6c91c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/request-permissions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { PushNotifications } from "@capacitor/push-notifications";
33

44
/**
55
* Requiests notification permissions
6+
*
7+
* @example
8+
```ts
9+
await requestPermissions()
10+
```
611
*/
712
export async function requestPermissions(): Promise<boolean>{
813
const { platform } = await Device.getInfo();

0 commit comments

Comments
 (0)