5

I am trying to retrieve all delivered notifications still showing in the notification center but UNUserNotificationCenter getDeliveredNotifications(completionHandler:) just doesn't work. I can get all the pending notifications with UNUserNotificationCenter getPendingNotificationRequests(completionHandler:) but getDeliveredNotifications will simply always return a 0 count even though there are notifications on the notification center.

shim
  • 9,289
  • 12
  • 69
  • 108
cauende
  • 135
  • 1
  • 11

1 Answers1

1

According to this: NUserNotificationCenter.current().getDeliveredNotifications only ever returns an empty array

Setting the badge number to 0 will clear your remote notifications.

Could that be the problem?

berrste
  • 43
  • 7