Using a CKQuerySubscription in a SharedDB?

Hi,


Our app previously used query-based subscriptions to fetch record changes from a private database. However, I am not able to save a query subscription to a shared database. Attempting to do so gives the following error:


<CKError 0x6180004526f0: "Invalid Arguments" (12/2006); server message = "Subscription type not supported in SharedDB">


Is there any way to implement a query-based subscription in a shared database, or to limit the results received by a CKDatabaseSubscription? Specifically, I would like to filter the notifications by record type and by field value. We do not want to receive all record changes, only the records that match a certain criteria. Am I correct in understanding that database subscriptions would require us to receive notifications for all records, and discard the unwanted records on the client side?

Replies

That is correct. You cannot store a predicate along with the database subscription to filter the changes. You would need to do that on the client side.