cloudkit-sharing

CloudKit CKShare URL Goes Nowhere

你。 提交于 2021-02-08 10:36:23
问题 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 everything disappear so all you see is the background on the web page. My understanding is that the URL is supposed to open my Mac app where it will fire userDidAcceptCloudKitShareWith in my app delegate. But it does nothing. Could this be because my

Unable to fetch records in a sharedCloudDatabase custom Zone using CloudKit

℡╲_俬逩灬. 提交于 2021-02-08 10:35:53
问题 I am trying to fetch CloudKit records from a custom Zone in a sharedDatabase. The zone has been created correctly during the share process. So I assume that the zone is correctly a shared custom zone (it is indeed in my CloudKit user dashboard, appearing under the sharedDatabase of the default container). Even with this simple piece of code to retrieve records: func loadRecords() { let database = CKContainer.default().sharedCloudDatabase let query = CKQuery(recordType: "Items", predicate:

CloudKit CKShare URL Goes Nowhere

时光总嘲笑我的痴心妄想 提交于 2021-02-08 10:34:22
问题 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 everything disappear so all you see is the background on the web page. My understanding is that the URL is supposed to open my Mac app where it will fire userDidAcceptCloudKitShareWith in my app delegate. But it does nothing. Could this be because my

Unable to fetch records in a sharedCloudDatabase custom Zone using CloudKit

为君一笑 提交于 2021-02-08 10:31:27
问题 I am trying to fetch CloudKit records from a custom Zone in a sharedDatabase. The zone has been created correctly during the share process. So I assume that the zone is correctly a shared custom zone (it is indeed in my CloudKit user dashboard, appearing under the sharedDatabase of the default container). Even with this simple piece of code to retrieve records: func loadRecords() { let database = CKContainer.default().sharedCloudDatabase let query = CKQuery(recordType: "Items", predicate:

How to model my CloudKit data

可紊 提交于 2021-02-07 10:12:54
问题 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 example tasks, but also reminders and so on. All this data will be stored in the users private database. Nothing will be in the public database. Now a user can have multiple projects. My first question: Should each project be in it's own CKRecordZone

How to model my CloudKit data

╄→гoц情女王★ 提交于 2021-02-07 10:09:34
问题 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 example tasks, but also reminders and so on. All this data will be stored in the users private database. Nothing will be in the public database. Now a user can have multiple projects. My first question: Should each project be in it's own CKRecordZone

How to model my CloudKit data

眉间皱痕 提交于 2021-02-07 10:07:36
问题 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 example tasks, but also reminders and so on. All this data will be stored in the users private database. Nothing will be in the public database. Now a user can have multiple projects. My first question: Should each project be in it's own CKRecordZone

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

跟風遠走 提交于 2019-12-10 11:31:23
问题 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 error = error{ print("accept share error: \(error)") }else{ //Share accepted... } } CloudKit.container.add(operation) I am also previously subscribed to the Shared database already like so: let subscriptionSharedDatabase = CKDatabaseSubscription

CloudKit CKShare userDidAcceptCloudKitShareWith Never Fires on Mac App

只愿长相守 提交于 2019-12-08 03:43:22
问题 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 CloudKit server and that the person I invited has access to it. Here's a screenshot: https://d.pr/i/0sMFQq When I click the share link associated with the CKShare , it opens my app, but nothing happens and userDidAcceptCloudKitShareWith doesn't fire.