0

I am developing a stand-alone WatchOS app in Swift and I am setting multiple local notifications for the same time but in 3-minute intervals for example if the user sets a reminder for 4 pm then I set reminders for 4:00, 4:03, 4:06, 4:09 and 4:12 pm as it's a requirement. Now if the user taps on any of the delivered notifications it should clear all previously delivered notifications from the notification centre to achieve that I tried different solutions suggested in other questions such as:

UNUserNotificationCenter.current().removeDeliveredNotifications

But this is not clearing the notification centre. Any help would be appreciated.

dmaulikr
  • 458
  • 5
  • 20

0 Answers0