Instance Property

fetchNotificationChangesCompletionBlock

The block that is executed after all requested notifications are fetched.

Declaration

@property(nonatomic, copy, nullable) void (^fetchNotificationChangesCompletionBlock)(CKServerChangeToken *serverChangeToken, NSError *operationError);

Discussion

The block returns no value and takes the following parameters:

serverChangeToken

An opaque object that you can use during subsequent fetch operations to retrieve the next batch of notifications.

operationError

An error object containing information about a problem, or nil if the results are retrieved successfully.

The operation object executes this block only once, which represents your last chance to process the operation results. This block is executed after all individual progress blocks but before the operation’s completion block. The block is executed serially with respect to the other progress blocks of the operation.

If you intend to use this block to process results, set it before executing the operation or submitting the operation object to a queue.

In your block, check the value of the moreComing property to determine if there are more results waiting on the server. If the value of that property is YES, use the value in the serverChangeToken parameter to configure a new CKFetchNotificationChangesOperation object to fetch the next batch of results.

See Also

Processing the Operation Results

moreComing

A Boolean value indicating that more notifications are waiting to be delivered.

Deprecated
notificationChangedBlock

The block that processes a single push notification.

Deprecated