removeNotifications(withIdentifiers:sourceIdentifier:)
Removes notifications using primitive identifier components.
Declaration
func removeNotifications(withIdentifiers identifiers: [String], sourceIdentifier: String) async throwsParameters
- identifiers:
A set of notification identifier strings.
- sourceIdentifier:
The bundle identifier of the app that posted the notifications.
Discussion
This method provides an alternative way to remove notifications using string identifiers rather than AccessoryNotification.Identifier instances.