ios-api.md 951 Bytes
Newer Older
yogevbd's avatar
yogevbd committed
1 2
---
id: ios-api
yogevbd's avatar
yogevbd committed
3
title: iOS Specific Commands
yogevbd's avatar
yogevbd committed
4 5 6
sidebar_label: iOS specific
---

yogevbd's avatar
yogevbd committed
7 8
## requestPermissions
request permissions
yogevbd's avatar
yogevbd committed
9

yogevbd's avatar
yogevbd committed
10 11 12
```js
Notifications.requestPermissions();
```
yogevbd's avatar
yogevbd committed
13

yogevbd's avatar
yogevbd committed
14 15
## checkPermissions
checkPermissions
yogevbd's avatar
yogevbd committed
16

yogevbd's avatar
yogevbd committed
17 18 19
```js
Notifications.checkPermissions();
```
yogevbd's avatar
yogevbd committed
20

yogevbd's avatar
yogevbd committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
## registerPushKit
registerPushKit

```js
Notifications.registerPushKit();
```

## cancelAllLocalNotifications
cancelAllLocalNotifications

```js
Notifications.cancelAllLocalNotifications();
```

## getDeliveredNotifications
getDeliveredNotifications

```js
Notifications.getDeliveredNotifications();
```

## removeAllDeliveredNotifications
removeAllDeliveredNotifications

```js
Notifications.removeAllDeliveredNotifications();
```

## removeDeliveredNotifications
removeDeliveredNotifications

```js
Notifications.removeDeliveredNotifications();
```

## getBadgeCount
getBadgeCount

```js
Notifications.getBadgeCount();
```

## setBadgeCount
setBadgeCount

```js
Notifications.setBadgeCount(1);
```