Contents

removeDeliveredNotifications(withIdentifiers:)

Removes your app’s notifications from Notification Center that match the specified identifiers.

Declaration

func removeDeliveredNotifications(withIdentifiers identifiers: [String])

Parameters

  • identifiers:

    An array of Nsstring objects, each of which corresponds to a value in the Identifier property of a Unnotificationrequest object. This method ignores the identifiers of requests whose notifications are not currently displayed in Notification Center.

Discussion

Use this method to selectively remove notifications that you no longer want displayed in Notification Center. The method executes asynchronously, returning immediately and removing the specified notifications on a background thread.

See Also

Removing delivered notifications