Skip to content

Commit f69c985

Browse files
authored
return to ios.registerRemoteNotifications name (#742)
1 parent bc49a94 commit f69c985

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

example/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class NotificationsExampleApp extends Component {
5252
}
5353

5454
requestPermissionsIos(options) {
55-
Notifications.ios.requestPermissions(options);
55+
Notifications.ios.registerRemoteNotifications(options);
5656
}
5757

5858
requestPermissions() {

lib/src/Notifications.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class NotificationsRoot {
4747
* registerRemoteNotifications
4848
*/
4949
public registerRemoteNotifications(options?: RequestPermissionsOptions[]) {
50-
this.ios.requestPermissions(options);
50+
this.ios.registerRemoteNotifications(options);
5151
this.android.registerRemoteNotifications();
5252
}
5353

lib/src/NotificationsIOS.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class NotificationsIOS {
2020
/**
2121
* Request permissions to send remote notifications
2222
*/
23-
public requestPermissions(options?: RequestPermissionsOptions[]) {
23+
public registerRemoteNotifications(options?: RequestPermissionsOptions[]) {
2424
return this.commands.requestPermissions(options);
2525
}
2626

website/docs/api/ios-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ title: iOS Specific Commands
44
sidebar_label: iOS specific
55
---
66

7-
## requestPermissions(options?: string[])
7+
## registerRemoteNotifications(options?: string[])
88
Requests notification permissions from iOS, prompting the user's dialog box.
99

1010
```js
11-
Notifications.ios.requestPermissions(['ProvidesAppNotificationSettings']);
11+
Notifications.ios.registerRemoteNotifications(['ProvidesAppNotificationSettings']);
1212
```
1313

1414
## checkPermissions()

0 commit comments

Comments
 (0)