@@ -64,7 +64,7 @@ export type PushNotificationEventName = $Keys<{
64
64
* Handle push notifications for your app, including permission handling and
65
65
* icon badge number.
66
66
*
67
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html
67
+ * See https://reactnative.dev /docs/pushnotificationios.html
68
68
*/
69
69
class PushNotificationIOS {
70
70
_data : Object ;
@@ -87,7 +87,7 @@ class PushNotificationIOS {
87
87
/**
88
88
* Schedules the localNotification for immediate presentation.
89
89
*
90
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#presentlocalnotification
90
+ * See https://reactnative.dev /docs/pushnotificationios.html#presentlocalnotification
91
91
*/
92
92
static presentLocalNotification ( details : Object ) {
93
93
RNCPushNotificationIOS . presentLocalNotification ( details ) ;
@@ -96,7 +96,7 @@ class PushNotificationIOS {
96
96
/**
97
97
* Schedules the localNotification for future presentation.
98
98
*
99
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#schedulelocalnotification
99
+ * See https://reactnative.dev /docs/pushnotificationios.html#schedulelocalnotification
100
100
*/
101
101
static scheduleLocalNotification ( details : Object ) {
102
102
RNCPushNotificationIOS . scheduleLocalNotification ( details ) ;
@@ -105,7 +105,7 @@ class PushNotificationIOS {
105
105
/**
106
106
* Cancels all scheduled localNotifications.
107
107
*
108
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#cancelalllocalnotifications
108
+ * See https://reactnative.dev /docs/pushnotificationios.html#cancelalllocalnotifications
109
109
*/
110
110
static cancelAllLocalNotifications ( ) {
111
111
RNCPushNotificationIOS . cancelAllLocalNotifications ( ) ;
@@ -114,7 +114,7 @@ class PushNotificationIOS {
114
114
/**
115
115
* Remove all delivered notifications from Notification Center.
116
116
*
117
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#removealldeliverednotifications
117
+ * See https://reactnative.dev /docs/pushnotificationios.html#removealldeliverednotifications
118
118
*/
119
119
static removeAllDeliveredNotifications ( ) : void {
120
120
RNCPushNotificationIOS . removeAllDeliveredNotifications ( ) ;
@@ -123,7 +123,7 @@ class PushNotificationIOS {
123
123
/**
124
124
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
125
125
*
126
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getdeliverednotifications
126
+ * See https://reactnative.dev /docs/pushnotificationios.html#getdeliverednotifications
127
127
*/
128
128
static getDeliveredNotifications (
129
129
callback : ( notifications : Array < Object > ) => void ,
@@ -134,7 +134,7 @@ class PushNotificationIOS {
134
134
/**
135
135
* Removes the specified notifications from Notification Center
136
136
*
137
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#removedeliverednotifications
137
+ * See https://reactnative.dev /docs/pushnotificationios.html#removedeliverednotifications
138
138
*/
139
139
static removeDeliveredNotifications ( identifiers : Array < string > ) : void {
140
140
RNCPushNotificationIOS. removeDeliveredNotifications ( identifiers ) ;
@@ -143,7 +143,7 @@ class PushNotificationIOS {
143
143
/**
144
144
* Sets the badge number for the app icon on the home screen.
145
145
*
146
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#setapplicationiconbadgenumber
146
+ * See https://reactnative.dev /docs/pushnotificationios.html#setapplicationiconbadgenumber
147
147
*/
148
148
static setApplicationIconBadgeNumber ( number : number ) {
149
149
RNCPushNotificationIOS . setApplicationIconBadgeNumber ( number ) ;
@@ -152,7 +152,7 @@ class PushNotificationIOS {
152
152
/**
153
153
* Gets the current badge number for the app icon on the home screen.
154
154
*
155
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getapplicationiconbadgenumber
155
+ * See https://reactnative.dev /docs/pushnotificationios.html#getapplicationiconbadgenumber
156
156
*/
157
157
static getApplicationIconBadgeNumber ( callback : Function ) {
158
158
RNCPushNotificationIOS . getApplicationIconBadgeNumber ( callback ) ;
@@ -161,7 +161,7 @@ class PushNotificationIOS {
161
161
/**
162
162
* Cancel local notifications.
163
163
*
164
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#cancellocalnotification
164
+ * See https://reactnative.dev /docs/pushnotificationios.html#cancellocalnotification
165
165
*/
166
166
static cancelLocalNotifications ( userInfo : Object ) {
167
167
RNCPushNotificationIOS . cancelLocalNotifications ( userInfo ) ;
@@ -170,7 +170,7 @@ class PushNotificationIOS {
170
170
/**
171
171
* Gets the local notifications that are currently scheduled.
172
172
*
173
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getscheduledlocalnotifications
173
+ * See https://reactnative.dev /docs/pushnotificationios.html#getscheduledlocalnotifications
174
174
*/
175
175
static getScheduledLocalNotifications ( callback : Function ) {
176
176
RNCPushNotificationIOS . getScheduledLocalNotifications ( callback ) ;
@@ -180,7 +180,7 @@ class PushNotificationIOS {
180
180
* Attaches a listener to remote or local notification events while the app
181
181
* is running in the foreground or the background.
182
182
*
183
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#addeventlistener
183
+ * See https://reactnative.dev /docs/pushnotificationios.html#addeventlistener
184
184
*/
185
185
static addEventListener ( type : PushNotificationEventName , handler : Function ) {
186
186
invariant (
@@ -227,7 +227,7 @@ class PushNotificationIOS {
227
227
* Removes the event listener. Do this in `componentWillUnmount` to prevent
228
228
* memory leaks.
229
229
*
230
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#removeeventlistener
230
+ * See https://reactnative.dev /docs/pushnotificationios.html#removeeventlistener
231
231
*/
232
232
static removeEventListener (
233
233
type : PushNotificationEventName ,
@@ -254,7 +254,7 @@ class PushNotificationIOS {
254
254
* a subset of these can be requested by passing a map of requested
255
255
* permissions.
256
256
*
257
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#requestpermissions
257
+ * See https://reactnative.dev /docs/pushnotificationios.html#requestpermissions
258
258
*/
259
259
static requestPermissions ( permissions ?: {
260
260
alert ?: boolean ,
@@ -285,7 +285,7 @@ class PushNotificationIOS {
285
285
/**
286
286
* Unregister for all remote notifications received via Apple Push Notification service.
287
287
*
288
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#abandonpermissions
288
+ * See https://reactnative.dev /docs/pushnotificationios.html#abandonpermissions
289
289
*/
290
290
static abandonPermissions ( ) {
291
291
RNCPushNotificationIOS . abandonPermissions ( ) ;
@@ -295,7 +295,7 @@ class PushNotificationIOS {
295
295
* See what push permissions are currently enabled. `callback` will be
296
296
* invoked with a `permissions` object.
297
297
*
298
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#checkpermissions
298
+ * See https://reactnative.dev /docs/pushnotificationios.html#checkpermissions
299
299
*/
300
300
static checkPermissions ( callback : Function ) {
301
301
invariant ( typeof callback === 'function ', 'Must provide a valid callback ') ;
@@ -306,7 +306,7 @@ class PushNotificationIOS {
306
306
* This method returns a promise that resolves to either the notification
307
307
* object if the app was launched by a push notification, or `null` otherwise.
308
308
*
309
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getinitialnotification
309
+ * See https://reactnative.dev /docs/pushnotificationios.html#getinitialnotification
310
310
*/
311
311
static getInitialNotification ( ) : Promise < ?PushNotificationIOS > {
312
312
return RNCPushNotificationIOS . getInitialNotification ( ) . then (
@@ -360,7 +360,7 @@ class PushNotificationIOS {
360
360
* This method is available for remote notifications that have been received via:
361
361
* `application:didReceiveRemoteNotification:fetchCompletionHandler:`
362
362
*
363
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#finish
363
+ * See https://reactnative.dev /docs/pushnotificationios.html#finish
364
364
*/
365
365
finish ( fetchResult : string ) {
366
366
if (
@@ -389,7 +389,7 @@ class PushNotificationIOS {
389
389
/**
390
390
* Gets the sound string from the `aps` object
391
391
*
392
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getsound
392
+ * See https://reactnative.dev /docs/pushnotificationios.html#getsound
393
393
*/
394
394
getSound ( ) : ?string {
395
395
return this . _sound ;
@@ -398,7 +398,7 @@ class PushNotificationIOS {
398
398
/**
399
399
* Gets the category string from the `aps` object
400
400
*
401
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getcategory
401
+ * See https://reactnative.dev /docs/pushnotificationios.html#getcategory
402
402
*/
403
403
getCategory ( ) : ?string {
404
404
return this . _category ;
@@ -407,7 +407,7 @@ class PushNotificationIOS {
407
407
/**
408
408
* Gets the notification's main message from the `aps` object
409
409
*
410
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getalert
410
+ * See https://reactnative.dev /docs/pushnotificationios.html#getalert
411
411
*/
412
412
getAlert ( ) : ?string | ?Object {
413
413
return this . _alert ;
@@ -416,7 +416,7 @@ class PushNotificationIOS {
416
416
/**
417
417
* Gets the content-available number from the `aps` object
418
418
*
419
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getcontentavailable
419
+ * See https://reactnative.dev /docs/pushnotificationios.html#getcontentavailable
420
420
*/
421
421
getContentAvailable ( ) : ContentAvailable {
422
422
return this . _contentAvailable ;
@@ -425,7 +425,7 @@ class PushNotificationIOS {
425
425
/**
426
426
* Gets the badge count number from the `aps` object
427
427
*
428
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getbadgecount
428
+ * See https://reactnative.dev /docs/pushnotificationios.html#getbadgecount
429
429
*/
430
430
getBadgeCount ( ) : ?number {
431
431
return this . _badgeCount ;
@@ -434,7 +434,7 @@ class PushNotificationIOS {
434
434
/**
435
435
* Gets the data object on the notif
436
436
*
437
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getdata
437
+ * See https://reactnative.dev /docs/pushnotificationios.html#getdata
438
438
*/
439
439
getData ( ) : ?Object {
440
440
return this . _data ;
@@ -443,7 +443,7 @@ class PushNotificationIOS {
443
443
/**
444
444
* Gets the thread ID on the notif
445
445
*
446
- * See https://facebook.github.io/react-native /docs/pushnotificationios.html#getthreadid
446
+ * See https://reactnative.dev /docs/pushnotificationios.html#getthreadid
447
447
*/
448
448
getThreadID ( ) : ?string {
449
449
return this . _threadID ;
0 commit comments