CloudKit 在用户之间共享私有容器 [英] CloudKit share private Container between users
问题描述
我正计划开发一个应用程序,用于共享有关地理位置(坐标、笔记、图片)的信息,一种寻宝游戏,我不明白是否可以使用 CloudKit 来共享私人的一部分用户之间的容器.如果是,我该怎么做?我需要像 Apple 在 Reminders App 中所做的那样创建一些东西,用户可以在其中邀请"其他用户并有一个公共列表在他们之间共享,每个人都可以插入或编辑内容.
I'm planning to develop an App used to share infos about geographic locations (coordinates, notes, pics), a kind of Treasure Hunt and I did not understand if it is possible, using CloudKit, to share part of a private container between users. If it is, how can I do that? I'd need to create something like Apple does in the Reminders App, where a user can "invite" other users and have a common list to share between them all where everybody can insert or edit stuff.
最终如果使用 CloudKit 无法做到这一点,我可以使用 Parse 做到这一点吗?
Eventually if it's not possible to do it using CloudKit, can I do that with Parse?
谢谢!
推荐答案
私有容器中的数据不能直接共享.您应该为该功能使用公共容器.您只需在您的应用中创建正确的过滤器,以便您只与您想与之共享数据的人共享数据.
Data in the private container can not be shared directly. You should use a public container for that functionality. You just have to create the right filters in your app so that you only share the data with the people you want to share the data with.
这篇关于CloudKit 在用户之间共享私有容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!