CloudKit shares a private container between users

I am planning to develop an application used to exchange information about geographic locations (coordinates, notes, drawings), a kind of treasure hunt, and I did not understand if it is possible to use CloudKit to share a part of a private container between users. If so, how can I do this? I need to create something like Apple in the Reminders app where a user can "invite" other users and have a common list to share between all of them, where everyone can insert or edit things.

After all, if it can't be done with CloudKit, can I do it with Parse?

Thank!

+3
ios parse.com cloudkit


source to share


2 answers


Data in a private container cannot be transferred directly. You must use a public container for this function. You just need to create the correct filters in your application so that you only share data with the people you want to share the data with.



+3


source to share


In iOS 10 / macOS 10.12, it is now possible to share hierarchies of records in a user's private database with other users.

Overview: [WWDC 2016] Session 226 - What's New in CloudKit

If you want to start diving into the new documentation, check out:



  • Ckshare

  • CKShareParticipant

  • CKFetchShareParticipantsOperation

  • CKFetchShareMetadataOperation

  • CKAcceptSharesOperation

And this thread in the Apple Developer Forums which provides some sample code.

+6


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics