CloudKit: Is it possible to create a user zone in a public database?

I could be involved in building the cloud-enabled application if the subscription service is available in the public domain.

Subscriptions for user zones in a private database will undoubtedly only allow you to register for changes you made elsewhere?

+5
source share
3 answers

Answering a question from your question: The CKRecordZone documentation says:

The CKRecordZone object defines the scope for organizing related records in the database. Zones are an important part of organizing your data. Public and private databases have a single zone by default, and in a private database you can create additional custom zones as needed. Use custom zones to organize and encapsulate groups of related records in a private database. User zones also support other features, such as the ability to record multiple records as a single atomic transaction.

Thus, you cannot create a zone in a public database

You're right. A private database is always associated with only 1 apple identifier. If you want to receive notifications of changes in the private database, then both the user / device, the changes made, and the user / device who needs to receive the notification must be registered using the same Apple ID.

+6
source

This has changed since iOS10. Now you can receive updates when the data in another user database is changed, creating CKShare, shared with participants. There is still not a lot of documentation on it, but I expect that work with textbooks will begin soon.

WWDC 2016 CloudKit

0
source

As stated in apple docs , you can only create additional user zones in a private database,

but, like Erik , you can share your personal records contained in the user zone to a common database, as video he linked the shows to the min. 20:00.

0
source

Source: https://habr.com/ru/post/1207397/


All Articles