Initializes and returns an operation object set to fetch notification changes.
- iOS 8.0–11.0Deprecated
- macOS 10.10–10.13Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–11.0Deprecated
- watchOS 3.0–4.0Deprecated
The change token from a previous fetch operation, or
nilto fetch all changes. When you specify a change token, the operation object fetches only the changes that occurred since the change token was generated.
An initialized operation object.
The first time you fetch notifications, specify
nil for the
previous to get information about all push notifications that have been sent. When that operation finishes executing, it passes a change token to your completion block. Save that change token and use it to initialize new operation objects that fetch only the newly generated notification objects.
If you mark one or more notifications as read using a
CKMark object, those notifications are not returned, even if you specify