I need to know about:
- when the record IS NOT shared with me anymore
- when permissions was changed from
readwrite
to onlyread
Is it possible at all?
I need to know about:
readwrite
to only read
Is it possible at all?
Oh, answer is simple:
let shareSubscription = CKQuerySubscription(recordType: "cloudkit.share", predicate: NSPredicate(value: true), options: options)
Works only for private database, in other words for the OWNER of shared records, for users who created CKShare.
If you need to subscribe for changes from the other side. For users participating in this share (invited to that share) you need to simply create CKDatabaseSubscription
.
let subscription = CKDatabaseSubscription(subscriptionID: "pl.blue-world.fieldservice.sharedDatabase")
subscription.database = sharedDatabase