How to determine if CKSubscription is indexed?

Home / Uncategorized / How to determine if CKSubscription is indexed?

Question:
According to Apple doc, "Subscription objects do not become active until you save them to the server and the server has time to index them.".

This "server has time to index them" part is disturbing: how much time, a second, an hour? And more importantly, is there a documented way to find out if CKSubscription (either CKQuerySubscription or CKRecordZoneSubscription) is already indexed? Until I know for sure that the subscription is indeed active, I have to resort to polling, which is a waste of user resources. Also, I don’t want to miss any relevant changes, not even one.

I know that I can fetchAllSubscriptions() on the CKDatabase, but that doesn’t tell me if the subscription is indeed "indexed", and up and running.

Thanks for your help,

Zsolt


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *