CKQuerySubscriptions are not supported in a sharedCloudDatabase
Asked Answered
I

1

1

I noticed that the docs mention that the newly introduced shared CloudKit databases do not support CKQuerySubscription (in earlier iOS versions these were called CKSubscription). So I guess that means that it is not possible to notify users when privately shared records have changed. Major disappointment. Has anyone run into this problem?

Irons answered 14/8, 2016 at 19:27 Comment(0)
I
3

According to the WWDC video about CloudKit this year:

So, new this year in iOS 10, there's an API called CKDatabaseSubscription.

This allows you to subscribe to any change across an entire database, and it works in a private database, in a shared database.

It shows you how starting on slide 51:

CloudKit Best Practices WWDC 2016 Presentation Slides

Inflated answered 18/8, 2016 at 2:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.