Initializes and returns a query-based subscription object that monitors records and has a specific name.
- iOS 8.0–10.0Deprecated
- macOS 10.10–10.12Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
The string that identifies the type of records to track. You use record type strings to differentiate among the different types of records in your app. This parameter must not be
nilor an empty string.
The matching criteria to apply to the records. This parameter must not be
nil. For information about the operators that are supported in search predicates, see the discussion in
The unique name of the subscription. This string must be unique in the specified database and must not be
A subscription object initialized to track record-related changes.
The object returned by this method is configured as a query-based subscription for searching records in the target database. The subscription monitors the specified type of records in all of the user’s record zones and generates push notifications when the search criteria are met.