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.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With