You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
- (iOS) `userInfo` is now populated with id by default to allow operation based on `id`.
20
21
21
22
### Features
22
23
@@ -34,6 +35,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
34
35
- (Android) Add `groupSummary` to allow grouping notifications. Based on [#1253](https://github.com/zo0r/react-native-push-notification/pull/1253)
35
36
- (Android) Add `channelId`, custom channel_id in android. Based on [#1159](https://github.com/zo0r/react-native-push-notification/pull/1159)
36
37
- (iOS) Add fire date in notification response, NOTE: `push-notification-ios` in version `> 1.2.0`[#1345](https://github.com/zo0r/react-native-push-notification/pull/1345)
@@ -436,19 +434,15 @@ You can list available channels with:
436
434
437
435
```js
438
436
PushNotification.deleteChannel(channel_id);
439
-
440
437
```
441
438
442
439
## Cancelling notifications
443
440
444
441
### 1) cancelLocalNotifications
445
442
446
-
#### Android
447
-
448
443
The `id` parameter for `PushNotification.localNotification` is required for this operation. The id supplied will then be used for the cancel operation.
The `userInfo` parameter for `PushNotification.localNotification` is required for this operation and must contain an `id` parameter. The id supplied will then be used for the cancel operation.
| id | number | The identifier of this notification.|
528
+
| date | Date | The fire date of this notification.|
529
+
| title | string | The title of this notification.|
530
+
| message | string | The message body of this notification.|
531
+
| soundName | string | The sound name of this notification.|
550
532
| repeatInterval | number | The repeat interval of this notification. |
551
-
| number | number | App notification badge count number. |
533
+
| number | number | App notification badge count number.|
552
534
553
535
## Abandon Permissions
554
536
@@ -621,9 +603,10 @@ This is done by specifying an `actions` parameters while configuring the local n
621
603
622
604
For e.g. `actions: ['Accept', 'Reject']`
623
605
624
-
When you handle actions in background (`invokeApp: false`), you can open the application and pass the initial notification by using use `PushNotification.invokeApp(notification)`.
606
+
When you handle actions in background (`invokeApp: false`), you can open the application and pass the initial notification by using use `PushNotification.invokeApp(notification)`.
625
607
626
608
Make sure you have the receiver in `AndroidManifest.xml`:
// for valid fields see: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html
152
166
// alertTitle only valid for apple watch: https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/#//apple_ref/occ/instp/UILocalNotification/alertTitle
0 commit comments