File tree Expand file tree Collapse file tree
packages/local-notifications Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
370370 try {
371371 if ( LocalNotificationsImpl . isUNUserNotificationCenterAvailable ( ) ) {
372372 UNUserNotificationCenter . currentNotificationCenter ( ) . removePendingNotificationRequestsWithIdentifiers ( < any > [ '' + id ] ) ;
373+ UNUserNotificationCenter . currentNotificationCenter ( ) . removeDeliveredNotificationsWithIdentifiers ( < any > [ '' + id ] ) ;
373374 resolve ( true ) ;
374375 } else {
375376 const scheduled = UIApplication . sharedApplication . scheduledLocalNotifications ;
@@ -395,6 +396,7 @@ export class LocalNotificationsImpl extends LocalNotificationsCommon implements
395396 try {
396397 if ( LocalNotificationsImpl . isUNUserNotificationCenterAvailable ( ) ) {
397398 UNUserNotificationCenter . currentNotificationCenter ( ) . removeAllPendingNotificationRequests ( ) ;
399+ UNUserNotificationCenter . currentNotificationCenter ( ) . removeAllDeliveredNotifications ( ) ;
398400 } else {
399401 UIApplication . sharedApplication . cancelAllLocalNotifications ( ) ;
400402 }
You can’t perform that action at this time.
0 commit comments