apple-push-notificationswatchos-3

Remote Notification removing in watchOS


I wonder is it possible to remove a notification from an Apple Watch that was sent by my application? I really need it. Thanks in advance.


Solution

  • It is possible, you just have to call one of the following two methods of UNUserNotificationCenter: removePendingNotificationRequests(withIdentifiers:) or removeAllPendingNotificationRequests()

    Reference