Posts

Showing posts with the label cloudkit

Invite to CKShare and Accept CKShare without UICloudSharingController and without sending link with URL

Invite to CKShare and Accept CKShare without UICloudSharingController and without sending link with URL Say I am making Root <-> Child application (i.e. Manager <-> Employee ). Root <-> Child Manager <-> Employee Say Manager has predefined email and already granted userDiscoverability application permission (via CKContainer.requestApplicationPermission ). Manager userDiscoverability CKContainer.requestApplicationPermission When Employee starts application, initialisation sequence automatically creates CKRecord (i.e. Employee record for time tracking), CKShare and silently invites Manager to CKShare . Employee CKRecord CKShare Manager CKShare For achieving this I am using CKContainer.discoverUserIdentity , then CKContainer.fetchShareParticipant , then CKModifyRecordsOperation which saves both CKRecord and CKShare . CKContainer.discoverUserIdentity CKContainer.fetchShareParticipant CKModifyRecordsOperation CKRecord CKShare After initialisation flow in pri...

Do not fetch deletion changes using CkFetchRecordZoneChangesOperation

Do not fetch deletion changes using CkFetchRecordZoneChangesOperation I use it to fetch all records from cloudkit database. I pass nil token to indicate that I need ALL changes. Later I fetch latest changes with apropriate token. But first time I get thousends of changes related to deletion. It takes some time... Is there a way to indicate whether I need deletion changes or not? Or can I somehow that type of change mark as received or read and to not get it anymore? 1 Answer 1 first time I get thousends of changes related to deletion. I understand you are mentioning the scenario when you are passing nil value to the server change token in CKFetchRecordZoneChangesOptions. Is there a way to indicate whether I need deletion changes or not? Or can I somehow that type of change mark as received or read and to not get it anymore? You get the IDs of the deleted records in the block: "setRecordWithIDWa...