问题描述
我注意到文档提到新引入的共享CloudKit数据库不支持CKQuerySubscription
(在早期的iOS版本中,这些称为CKSubscription
).因此,我想这意味着当私人共享记录已更改时,不可能通知用户.重大失望.有没有人遇到这个问题?
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?
推荐答案
根据WWDC今年有关CloudKit的视频:
According to the WWDC video about CloudKit this year:
这使您可以订阅整个数据库中的所有更改,并且可以在私有数据库,共享数据库中工作.
This allows you to subscribe to any change across an entire database, and it works in a private database, in a shared database.
它向您展示了如何从幻灯片51开始:
It shows you how starting on slide 51:
这篇关于sharedCloudDatabase中不支持CKQuerySubscriptions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!