sharedCloudDatabase中不支持CKQuerySubscriptions

编程入门 行业动态 更新时间:2024-10-12 12:31:35
本文介绍了sharedCloudDatabase中不支持CKQuerySubscriptions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我注意到文档提到新引入的共享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:

因此,今年iOS 10的新功能是提供了一个名为CKDatabaseSubscription的API.

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.

它向您展示了如何从幻灯片51开始:

It shows you how starting on slide 51:

CloudKit最佳做法WWDC 2016演示幻灯片

更多推荐

sharedCloudDatabase中不支持CKQuerySubscriptions

本文发布于:2023-10-24 21:00:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1524991.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中不   sharedCloudDatabase   CKQuerySubscriptions

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!