CKQuerySubscriptions are not supported in a sharedCloudDatabase

这一生的挚爱 提交于 2019-12-08 06:40:00

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/38945807/ckquerysubscriptions-are-not-supported-in-a-sharedclouddatabase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!