Saves one subscription object asynchronously, with a low priority, to the current database.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
The subscription object you want to save to the database. This method throws an exception if this parameter is
The block to execute with the results. Your block must be capable of running on any thread of the app and must take the following parameters:
The subscription object you attempted to save.
An error object, or
nilif the subscription was saved successfully. Use the information in the error object to determine whether a problem has a workaround.
Use this method to save a subscription to the database so that the subsription can begin watching for changes.
This method saves the subscription object with a low priority, which may cause the task to execute after higher-priority tasks. To save the subscription more urgently, create a
CKModify object with the desired priority. You can also use that operation object to save multiple subscription objects simultaneously.