Contents

removeNotifications(identifiers:)

Removes the identified notifications.

Declaration

func removeNotifications(identifiers: [AccessoryNotification.Identifier]) async throws

Parameters

  • identifiers:

    An array of notification identifiers to clear.

Discussion

This method has equivalent behavior to clearing notifications from Notification Center on the phone. The system doesn’t send actions to apps for removed notifications. This method only throws for errors receiving the removal request, not if some identifiers were already removed.

See Also

Removing notifications