Instance Method

removePendingNotificationRequestsWithIdentifiers:

Unschedules the specified notification requests.

Declaration

- (void)removePendingNotificationRequestsWithIdentifiers:(NSArray<NSString *> *)identifiers;

Parameters

identifiers

An array of NSString objects, each of which contains the identifier of an active UNNotificationRequest object. If the identifier belongs to a non repeating request, and the trigger condition for that request has already been met, this method ignores the identifier.

Discussion

This method executes asynchronously, removing the pending notification requests on a secondary thread.

See Also

Scheduling and Canceling Notification Requests

- addNotificationRequest:withCompletionHandler:

Schedules a local notification for delivery.

- getPendingNotificationRequestsWithCompletionHandler:

Returns a list of all notification requests that are scheduled and waiting to be delivered.

- removeAllPendingNotificationRequests

Unschedules all pending notification requests.