Instance Method


Removes all of the app’s delivered notifications from Notification Center.


func removeAllDeliveredNotifications()


Use this method to remove all of your app’s delivered notifications from Notification Center. The method executes asynchronously, returning immediately and removing the identifiers on a background thread. This method does not affect any notification requests that are scheduled, but have not yet been delivered.

See Also

Managing Delivered Notifications

func getDeliveredNotifications(completionHandler: ([UNNotification]) -> Void)

Returns a list of the app’s notifications that are still displayed in Notification Center.

func removeDeliveredNotifications(withIdentifiers: [String])

Removes the specified notification requests from Notification Center.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software