Questions tagged [ckshare]
14 questions
16
votes
3 answers
Share Core Data between users with NSPersistentCloudKitContainer
Apple introduced the NSPersistentCloudKitContainer with iOS 13 which enable us to use CloudKit with Core Data. I got it working pretty much instantly on different devices but my main issue is still left.
Is it possible to share the data in an easy…

Jonas
- 1,112
- 5
- 17
- 28
6
votes
1 answer
Cannot share with UICloudSharingController; vanishes with "uploading" message
while presenting the UICloudSharingController on top of a view, it presents the screen and when I select the messages option to send a message to a person whom I want to share with, it gives a spinning wheel with "uploading" message and vanishes -…

vrao
- 545
- 2
- 12
- 33
4
votes
5 answers
CloudKit CKShare userDidAcceptCloudKitShareWith Never Fires on Mac App
I am working on accepting a CKShare in a macOS app in Swift 4. I've already done all the following:
Create the CKShare and save it with its rootRecord to CloudKit
Add a participant (CKShare.Participant)
I've confirmed that the CKShare is on the…

Clifton Labrum
- 13,053
- 9
- 65
- 128
1
vote
0 answers
How do I fetch or query shares from a database in CloudKit?
I was able to query records from CloudKit, but the CKRecord objects I retrieved were not able to cast to CKShare. How else would I retrieve shares in CloudKit. The cloudkit.share record type is not queryable.
This post on stackoverflow has an answer…

daniel
- 1,446
- 3
- 29
- 65
1
vote
0 answers
Cannot fetch record zones from shared database
let share = CKShare(rootRecord: infraRecord)
// save
let op: CKFetchShareParticipantsOperation = CKFetchShareParticipantsOperation(userIdentityLookupInfos: lookupInfos)
op.fetchShareParticipantsCompletionBlock = {…

vrao
- 545
- 2
- 12
- 33
1
vote
1 answer
CKShare "userDidAcceptCloudKitShareWith" is only triggered by first installation of same user
in Appdelegate I have userDidAcceptCloudKitShareWith
but it gets only fired for the first device from the user who has accepted the invitation.
Example:
User A invites User B.
User B accepts the invitation on device B1 -> everything is ok,…

Red
- 1,425
- 1
- 10
- 15
0
votes
0 answers
How do I, in iOS 16.1.2, restrict access to the participants of a share to be able to be changed by only the owner of the share?
How do I implement UICloudSharingController so that in iOS 16.1.2, only the owner of the share can add or remove participants of the share, with the exception that a participant can remove himself from the share. When I set availablePermissions to…

daniel
- 1,446
- 3
- 29
- 65
0
votes
1 answer
SwiftUI CKShare Set Default Permission to Read Only
I have a couple of apps that include CloudKit record sharing and it now seems to work ok in iOS 16.
I only include Read Write and Read Only permission options and require the share recipient be in the user contacts.
This does indeed seem to work as…

JohnSF
- 3,736
- 3
- 36
- 72
0
votes
1 answer
SwiftUI: Sharing NSSharingService on macOS not receiving share
I have a simple test application that attempts to share a CoreData record with another user using NSSharingService. I can create my share and that works,
but when I try to receive the share it opens up the application but doesn't do anything.
I have…

iphaaw
- 6,764
- 11
- 58
- 83
0
votes
1 answer
CloudKit: How to use CKFetchShareParticipants and CKModifyRecords to get share URL?
I'm following this WWDC video and some sample code found online (regrettably Apple didn't include sample code in its WWDC talk), with this code below I am getting my CKShareParticipant ok but this block modOperation.modifyRecordsCompletionBlock is…

GarySabo
- 5,806
- 5
- 49
- 124
0
votes
2 answers
Users can't open CKShare record when they accepted the record and application starts
Working my way thru implementing the CKShare functionality of CloudKit.
I Haven manged to get to the part to share a record (via email for example) and also can confirm the user received the invite. The problem is that when user accepts the record…

DeeNove750
- 63
- 8
0
votes
3 answers
CKShare - Failed to modify some records error - CloudKit
I'm trying to share a record with other users in CloudKit but I keep getting an error. When I tap one of the items/records on the table I'm presented with the UICloudSharingController and I can see the iMessage app icon, but when I tap on it I get…

fs_tigre
- 10,650
- 13
- 73
- 146
0
votes
1 answer
CloudKit share workflow ends with: To open it, you'll need the latest version of "app_name"
I'm trying to create a CKShare on a set of CKRecords using CloudKit. I've made it through most of the workflow:
create a 'root_record' that all shared records will identify as
parent
add several records and identify 'root_record' as parent
create…

Dave Norfleet
- 409
- 3
- 14
0
votes
1 answer
CloudKit acceptShare error - "Couldn't get a Sharing identity set"
I am programatically creating a CKShare and sharing the URL with recipients over email; when they do this, they click on the link and the UIApplication 'userDidAcceptCloudKitShareWithMetadata' method is correctly called. I then use the…

Z S
- 7,039
- 12
- 53
- 105