custom share workflow

I am working on a software where we want to add the feature to share the whole database with the other user. Database is iCloud combined with coredata. The other user(s) should be able to edit /delete and even create new objects in the share. I did this with this code witch directly from sample code

let participants = try await ckConainer.fetchParticipants(matching: [lookupInfo], into: selectedStore)
for participant in participants {
participant.permission = .readWrite
participant.role = .privateUser
share.addParticipant(participant)
}
try await ckConainer.persistUpdatedShare(share, in: selectedStore)

the other user gets invited and I can see this in iCloud database that the other user is invited with status invited.

but the other user never gets a mail or something to accept and join the share. How does the other needs to accept the invitation ?

If you are using the system-provided sharing UI (ShareLink, UIActivityViewController / NSSharingServicePicker, or UICloudSharingController / NSSharingService), the UI provides ways to send the share URL to a participant, as described at step 5 in Try out the sharing flow.

If you are implementing your own sharing flow, you need to provide your own way for users to send a share URL.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

the share url, you mean the CKShare.url right?

custom share workflow
 
 
Q