Post

Replies

Boosts

Views

Activity

Deleting/Leaving a share
What is the best-practice for deleting/leaving a share? I'm trying to figure out how to stop sharing a record you've previously shared, as well as how to leave a share you've previously joined that someone else has shared. Hopefully I've just missed the documentation around this point, but I see little on the topic. Can someone confirm or correct this approach? Thanks. Say Alice has a record named record-A. Alice shares record-A Alice's privateCloudDatabase now contains a cloudkit.share record. Alice's record-A.share is set to a reference to that cloudkit.share. Bob joins the share Bob's sharedCloudDatabase now contains a cloudkit.share record referencing Alice's cloudkit.share? Bob wants to leave the share QUESTION: Is it enough to simply delete Bob's cloudkit.share in his sharedCloudDatabase? Alice wants to stop sharing QUESTION: Is it enough to simply delete Alice's cloudkit.share in her privateCloudDatabase? QUESTION: When Alice stops sharing, is Bob's cloudkit.share automatically deleted from his sharedCloudDatabase?
3
0
2.2k
May ’22
iCloud syncing requires iCloud Drive?
Does iCloud Drive need to be enabled in order to determine whether someone is signed into iCloud? Because it seems like it does, which I don't recall reading anywhere before. With iCloud Drive disabled, a call to CKContainer.default().accountStatus() returns status: CKAccountStatus.noAccount, error: nil With iCloud Drive enabled, the same call returns status: CKAccountStatus.available, error: nil. I had a user report that syncing wasn't working, and it turned out that she had disabled iCloud Drive, not knowing what it was or whether it benefited her.
1
0
882
Jan ’22
CloudKit subscriptions, sharing, and remote notifications
I am hoping you can tell me what's possibly different here. Devices A and B are shared participants in a shopping list. I've confirmed: • both are on the Production environment • both have database subscriptions to private and shared What I'm seeing: • A (share owner) sees items added by B. • B (invitee) does not see items added by A. If B syncs then it sees the items, but it receives no related remote notifications at all, despite the subscriptions (yet A does receive them) Seems like these two devices should be the same, but what might be causing B to not get the remote notifications? Thanks for any pointers.
1
0
799
Jan ’22
Is there a failure notification equivalent to cloudSharingControllerDidStopSharing?
UICloudSharingController calls delegate.cloudSharingControllerDidStopSharing() when a share is successfully unshared. Is there an equivalent call when a failure occurs during share deletion, similar to the delegate.failedToSaveShareWithError() called when the share is being created? I'm asking because I want to provide appropriate feedback for both success and failure scenarios when the user taps Stop Sharing.
0
0
924
Jan ’22
Xcode: device using "Connect via network" missing notifications?
My iPad isn't receiving CloudKit notifications as expected when connected to Xcode through "Connect via network" (wirelessly). My setup: • iPhone - connected to Xcode via USB • iPad 1 - connected to Xcode via USB • iPad 2 - connected to Xcode via "Connected via network" All three devices are built and running in the debugger. On the iPhone, I change something, the change gets saved to iCloud successfully, and I see the change reflected quickly on iPad 1, but never on iPad 2. Setting breakpoints to detect the remote notifications show they never arrive at all on iPad 2. Is this a limitation of Bonjour connections, or a bug?
0
1
1k
Dec ’21
What is "shared PCS data"?
When saving a record, I'm getting an error relating to the record's parent record, which I'm specifying for sharing. Normally, things work fine, but occasionally I see this error: <CKError 0x2817841b0: "Internal Error" (1/5001); "Parent record <CKRecordID: 0x105b26f70; recordName=EC8418DB-A9DC-4CCE-ADEB-E1548237DA19, zoneID=SharedShoppingZone:defaultOwner> in the same batch didn't have chain PCS data on it for record <CKRecordID: 0x105b48600; recordName=32EE1E4C-0DE9-4E88-B284-A3DBFC0AABE9, zoneID=SharedShoppingZone:defaultOwner>">. Beforehand I'm fetching the parent record afresh so it is current, but what is the cryptically-named "chain PCS data" and what is this error attempting to tell me? Thanks for any help.
1
0
1k
Dec ’21
Deleting/Leaving a share
What is the best-practice for deleting/leaving a share? I'm trying to figure out how to stop sharing a record you've previously shared, as well as how to leave a share you've previously joined that someone else has shared. Hopefully I've just missed the documentation around this point, but I see little on the topic. Can someone confirm or correct this approach? Thanks. Say Alice has a record named record-A. Alice shares record-A Alice's privateCloudDatabase now contains a cloudkit.share record. Alice's record-A.share is set to a reference to that cloudkit.share. Bob joins the share Bob's sharedCloudDatabase now contains a cloudkit.share record referencing Alice's cloudkit.share? Bob wants to leave the share QUESTION: Is it enough to simply delete Bob's cloudkit.share in his sharedCloudDatabase? Alice wants to stop sharing QUESTION: Is it enough to simply delete Alice's cloudkit.share in her privateCloudDatabase? QUESTION: When Alice stops sharing, is Bob's cloudkit.share automatically deleted from his sharedCloudDatabase?
Replies
3
Boosts
0
Views
2.2k
Activity
May ’22
iCloud syncing requires iCloud Drive?
Does iCloud Drive need to be enabled in order to determine whether someone is signed into iCloud? Because it seems like it does, which I don't recall reading anywhere before. With iCloud Drive disabled, a call to CKContainer.default().accountStatus() returns status: CKAccountStatus.noAccount, error: nil With iCloud Drive enabled, the same call returns status: CKAccountStatus.available, error: nil. I had a user report that syncing wasn't working, and it turned out that she had disabled iCloud Drive, not knowing what it was or whether it benefited her.
Replies
1
Boosts
0
Views
882
Activity
Jan ’22
CloudKit subscriptions, sharing, and remote notifications
I am hoping you can tell me what's possibly different here. Devices A and B are shared participants in a shopping list. I've confirmed: • both are on the Production environment • both have database subscriptions to private and shared What I'm seeing: • A (share owner) sees items added by B. • B (invitee) does not see items added by A. If B syncs then it sees the items, but it receives no related remote notifications at all, despite the subscriptions (yet A does receive them) Seems like these two devices should be the same, but what might be causing B to not get the remote notifications? Thanks for any pointers.
Replies
1
Boosts
0
Views
799
Activity
Jan ’22
Is there a failure notification equivalent to cloudSharingControllerDidStopSharing?
UICloudSharingController calls delegate.cloudSharingControllerDidStopSharing() when a share is successfully unshared. Is there an equivalent call when a failure occurs during share deletion, similar to the delegate.failedToSaveShareWithError() called when the share is being created? I'm asking because I want to provide appropriate feedback for both success and failure scenarios when the user taps Stop Sharing.
Replies
0
Boosts
0
Views
924
Activity
Jan ’22
Xcode: device using "Connect via network" missing notifications?
My iPad isn't receiving CloudKit notifications as expected when connected to Xcode through "Connect via network" (wirelessly). My setup: • iPhone - connected to Xcode via USB • iPad 1 - connected to Xcode via USB • iPad 2 - connected to Xcode via "Connected via network" All three devices are built and running in the debugger. On the iPhone, I change something, the change gets saved to iCloud successfully, and I see the change reflected quickly on iPad 1, but never on iPad 2. Setting breakpoints to detect the remote notifications show they never arrive at all on iPad 2. Is this a limitation of Bonjour connections, or a bug?
Replies
0
Boosts
1
Views
1k
Activity
Dec ’21
What is "shared PCS data"?
When saving a record, I'm getting an error relating to the record's parent record, which I'm specifying for sharing. Normally, things work fine, but occasionally I see this error: <CKError 0x2817841b0: "Internal Error" (1/5001); "Parent record <CKRecordID: 0x105b26f70; recordName=EC8418DB-A9DC-4CCE-ADEB-E1548237DA19, zoneID=SharedShoppingZone:defaultOwner> in the same batch didn't have chain PCS data on it for record <CKRecordID: 0x105b48600; recordName=32EE1E4C-0DE9-4E88-B284-A3DBFC0AABE9, zoneID=SharedShoppingZone:defaultOwner>">. Beforehand I'm fetching the parent record afresh so it is current, but what is the cryptically-named "chain PCS data" and what is this error attempting to tell me? Thanks for any help.
Replies
1
Boosts
0
Views
1k
Activity
Dec ’21