Initializes and returns a query-based subscription that monitors records with the specified options.
- 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 are responsible for naming your app’s record types. 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
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.