iosios10cloudkit

Separate CKServerChangeTokens for the privateCloudDatabase and the sharedCloudDatabase?


I am trying to implement CKShare in iOS 10 CloudKit.

Do I need to keep track of separate CKServerChangeTokens for the privateCloudDatabase and the sharedCloudDatabase?


Solution

  • Since a CKServerChangeToken is used with various database operations, and those operations are called on a specific CloudKit database, then yes, you need to keep track of database specific tokens.