File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class NotificationsExampleApp extends Component {
52
52
}
53
53
54
54
requestPermissionsIos ( options ) {
55
- Notifications . ios . requestPermissions ( options ) ;
55
+ Notifications . ios . registerRemoteNotifications ( options ) ;
56
56
}
57
57
58
58
requestPermissions ( ) {
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class NotificationsRoot {
47
47
* registerRemoteNotifications
48
48
*/
49
49
public registerRemoteNotifications ( options ?: RequestPermissionsOptions [ ] ) {
50
- this . ios . requestPermissions ( options ) ;
50
+ this . ios . registerRemoteNotifications ( options ) ;
51
51
this . android . registerRemoteNotifications ( ) ;
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class NotificationsIOS {
20
20
/**
21
21
* Request permissions to send remote notifications
22
22
*/
23
- public requestPermissions ( options ?: RequestPermissionsOptions [ ] ) {
23
+ public registerRemoteNotifications ( options ?: RequestPermissionsOptions [ ] ) {
24
24
return this . commands . requestPermissions ( options ) ;
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ title: iOS Specific Commands
4
4
sidebar_label : iOS specific
5
5
---
6
6
7
- ## requestPermissions (options?: string[ ] )
7
+ ## registerRemoteNotifications (options?: string[ ] )
8
8
Requests notification permissions from iOS, prompting the user's dialog box.
9
9
10
10
``` js
11
- Notifications .ios .requestPermissions ([' ProvidesAppNotificationSettings' ]);
11
+ Notifications .ios .registerRemoteNotifications ([' ProvidesAppNotificationSettings' ]);
12
12
```
13
13
14
14
## checkPermissions()
You can’t perform that action at this time.
0 commit comments