This repository was archived by the owner on Jan 14, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
android/src/main/java/com/dieam/reactnativepushnotification/modules Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -524,6 +524,32 @@ Removes the specified notifications from Notification Center
524
524
| ----------- | ----- | -------- | ---------------------------------- |
525
525
| identifiers | array | Yes | Array of notification identifiers. |
526
526
527
+ ### 6) getScheduledLocalNotifications
528
+
529
+ ``` javascript
530
+ PushNotificationIOS .getScheduledLocalNotifications (callback);
531
+ ```
532
+
533
+ Provides you with a list of the app’s scheduled local notifications that are yet to be displayed
534
+
535
+ ** Parameters:**
536
+
537
+ | Name | Type | Required | Description |
538
+ | -------- | -------- | -------- | ----------------------------------------------------------- |
539
+ | callback | function | Yes | Function which receive an array of delivered notifications. |
540
+
541
+ Returns an array of local scheduled notification objects containing:
542
+
543
+ | Name | Type | Description |
544
+ | -------- | -------- | -------- | ----------------------------------------------------------- |
545
+ | id | number | The identifier of this notification. |
546
+ | date | Date | The fire date of this notification. |
547
+ | title | string | The title of this notification. |
548
+ | message | string | The message body of this notification. |
549
+ | soundName | string | The sound name of this notification. |
550
+ | repeatInterval | number | The repeat interval of this notification. |
551
+ | number | number | App notification badge count number. |
552
+
527
553
## Abandon Permissions
528
554
529
555
` PushNotification.abandonPermissions() ` Revokes the current token and unregister for all remote notifications received via APNS or FCM.
Original file line number Diff line number Diff line change @@ -741,7 +741,6 @@ public WritableArray getScheduledLocalNotifications() {
741
741
notificationMap .putString ("number" , notification .getNumber ());
742
742
notificationMap .putDouble ("date" , notification .getFireDate ());
743
743
notificationMap .putString ("id" , notification .getId ());
744
- notificationMap .putBoolean ("remote" , false );
745
744
notificationMap .putString ("repeatInterval" , notification .getRepeatType ());
746
745
notificationMap .putString ("soundName" , notification .getSound ());
747
746
Original file line number Diff line number Diff line change @@ -448,7 +448,6 @@ Notifications.getScheduledLocalNotifications = function(callback) {
448
448
return ( {
449
449
soundName : notif . soundName ,
450
450
repeatInterval : notif . repeatInterval ,
451
- remote : notif . remote ,
452
451
id : notif . userInfo ?. id ,
453
452
date : new Date ( notif . fireDate ) ,
454
453
number : notif ?. applicationIconBadgeNumber ,
@@ -461,7 +460,6 @@ Notifications.getScheduledLocalNotifications = function(callback) {
461
460
return ( {
462
461
soundName : notif . soundName ,
463
462
repeatInterval : notif . repeatInterval ,
464
- remote : notif . remote ,
465
463
id : notif . id ,
466
464
date : new Date ( notif . date ) ,
467
465
number : notif . number ,
You can’t perform that action at this time.
0 commit comments