gpt4 book ai didi

ios - 私有(private)数据库和订阅的 Cloudkit 问题?

转载 作者:可可西里 更新时间:2023-11-01 04:38:31 25 4
gpt4 key购买 nike

问题

Bob 的 iPhone 将 recordA 保存在 Bob 私有(private)数据库的 someZone 中。

Bob 的 iPad 收到订阅更改通知,并从用户私有(private)数据库中的 someZone 中检索 recordA。

Bob 的 iPod touch 也收到订阅更改通知,并从用户私有(private)数据库中的 someZone 检索记录 A。

Bob 的 iPad 删除了用户私有(private)数据库中 someZone 中的 recordA。

Bob 的 iPod touch 和 iPad(出于某种原因)收到删除订阅通知。 Bob 的 iPhone 收不到订阅通知。

预期结果

Bob 的 iPad 不应收到订阅删除通知。只有 Bob 的 iPhone 和 iPod touch 应该收到订阅通知。

这在 CKSubscription 的文档中有说明:

When a record modification causes a subscription to fire, the server sends push notifications to all devices with that subscription except for the one that made the original change to the record.

iPad 进行了删除,因此,iPad 应该不会收到订阅通知。

实际结果

iPad 收到删除的订阅通知,尽管它是原始更改记录的作者。

iPhone没有收到删除通知。

iPod touch 收到订阅删除通知。

其他反馈

看起来记录的原作者(不是更改的原作者)没有收到任何通知,无论是谁删除了记录。这与文档不一致。

最佳答案

这是一个已知的 CloudKit 错误。但是,有一个解决方法。当您首先通过进行小的更改来触摸记录然后删除记录时,它会按描述工作。

关于ios - 私有(private)数据库和订阅的 Cloudkit 问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27331258/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com