Questions tagged [cloudkit-sharing]

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Use this tag for questions related to the CKShare object or sharing in Cloudkit.

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Use this tag for questions related to the CKShare object or sharing in Cloudkit.

23 questions
5
votes
0 answers

UICloudSharingController does not show "Add People" with existing share in iOS 15.x but does in iOS 14.x

Running iOS 14.x or lower the UICloudSharingController shows Add People as the last line of the 1st section of the People sheet. As of iOS 15.x including the new 15.2 beta the row containing Add People is not present. Anyone know of a work around…
Rob
  • 757
  • 1
  • 10
  • 26
5
votes
2 answers

Using UIApplicationDelegateAdaptor to get callbacks from userDidAcceptCloudKitShareWith not working

I'm trying to get notified when userDidAcceptCloudKitShareWith gets called. Traditionally this was called in the App Delegate but since I am building an iOS 14+ using App as my root object. I couldn't find any documentation out yet as far as how…
GarySabo
  • 5,806
  • 5
  • 49
  • 124
4
votes
1 answer

iCloud share link opens wrong app on App Store

We recently integrated UICloudSharingController to share cloudkit records on one of our apps, but we noticed while testing that the icloud share link opens the wrong app on App Store if we invite a participant who has not the app installed on his…
4
votes
0 answers

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). Say Manager has predefined email and already granted userDiscoverability application permission (via CKContainer.requestApplicationPermission). When Employee starts application,…
Vlad
  • 6,402
  • 1
  • 60
  • 74
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
3
votes
2 answers

CoreData + CloudKit but No sharing

CoreData is pretty awesome. It makes coding a persistent store with a SQLite DB quite predictable. CloudKit is pretty awesome. It makes coding a persistent store in iCloud easy and shareable between a user's devices. CoreData + CloudKit are doubly…
3
votes
1 answer

How to Be Notified if the Owner Removes Me from a CKShare on CloudKit

Let's say the owner of a record shares it with me. I get sent a share link and I open it and accept the share like this: let operation = CKAcceptSharesOperation(shareMetadatas: [metadata]) operation.acceptSharesCompletionBlock = { error in if let…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
2
votes
1 answer

How can I check if a RecordZone is shared with CloudKit?

I am interested in checking if a RecordZone has been shared. When I share a zone, I know there is a share record created in that zone. In Apple's CloudKit example, it checks to see if a specific record is shared: func fetchOrCreateShare(contact:…
jh95
  • 379
  • 2
  • 12
2
votes
2 answers

UICloudSharingController Does not Display/Work with CloudKit App

I have been struggling to get an app to work with CloudKit and record sharing. I have created several apps that sync Core Data records among devices for one user. I have not been able to get the UICloudSharingController to work for sharing records.…
2
votes
1 answer

How may participants reverse their acceptance of CKShare?

Is there a way to implement the behaviour - participants reverse their acceptances of CKShares? After the participants accept the CKShares, they go over the shared and say oh no I don't want to contribute anything to the shared and I don't even want…
Ron Liu
  • 188
  • 11
2
votes
1 answer

How to accept CloudKit shares with the new SwiftUI app lifecycle?

In the iOS 13 world, I had code like this: class SceneDelegate: UIResponder, UIWindowSceneDelegate { func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata) { //…
Jaanus
  • 17,688
  • 15
  • 65
  • 110
2
votes
1 answer

How to model my CloudKit data

In my app I decided to use CloudKit as my sync-backend. My app is not about projects, but for simplicity let's say so... So... In my app users will have multiple projects. Each of those contains multiple entities associated with that project. For…
Georg
  • 3,664
  • 3
  • 34
  • 75
2
votes
1 answer

CloudKit CKShare URL Goes Nowhere

I have successfully saved a CKShare URL to CloudKit, and I can see that the user is INVITED in the CloudKit Dashboard. My Mac app emailed the URL to that person, but when they click it, all they see it this screen on icloud.com: Clicking OK makes…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
1
vote
0 answers

CKDatabaseSubscription fails successfully when using alertLocalizationArgs and/or desiredKeys

I'm using Core Data + CloudKit && CloudKit Sharing. I'm trying to present a dynamic notification to all participants of a CKShare whenever any participant posts a change to the share. I'm trying to use a CKDatabaseSubscription with…
1
vote
2 answers

CKFetchRecordZoneChangesOperation not calling recordWithIDWasDeletedBlock on Shared Record Deletion

I have a record that I share from device A to device B. Device B accepts the share and show the info on Device B's UI. Device B subscribes to Database changes on that shared record using a CKDatabaseSubscription. I then delete that record on device…
Etep
  • 533
  • 7
  • 20
1
2