File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/local-notifications Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
370
370
try {
371
371
if ( LocalNotificationsImpl . isUNUserNotificationCenterAvailable ( ) ) {
372
372
UNUserNotificationCenter . currentNotificationCenter ( ) . removePendingNotificationRequestsWithIdentifiers ( < any > [ '' + id ] ) ;
373
+ UNUserNotificationCenter . currentNotificationCenter ( ) . removeDeliveredNotificationsWithIdentifiers ( < any > [ '' + id ] ) ;
373
374
resolve ( true ) ;
374
375
} else {
375
376
const scheduled = UIApplication . sharedApplication . scheduledLocalNotifications ;
@@ -395,6 +396,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
395
396
try {
396
397
if ( LocalNotificationsImpl . isUNUserNotificationCenterAvailable ( ) ) {
397
398
UNUserNotificationCenter . currentNotificationCenter ( ) . removeAllPendingNotificationRequests ( ) ;
399
+ UNUserNotificationCenter . currentNotificationCenter ( ) . removeAllDeliveredNotifications ( ) ;
398
400
} else {
399
401
UIApplication . sharedApplication . cancelAllLocalNotifications ( ) ;
400
402
}
You can’t perform that action at this time.
0 commit comments