Questions tagged [cloudkit]

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Queries can be run against structured records on the server, and assets provide for large data storage. The public database provides shared storage for web-style apps, and the private database provides storage for user-specific data. CloudKit also provides a user identity so that an iCloud account can be used for sign-in for your app.

CloudKit

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Queries can be run against structured records on the server, and assets provide for large data storage.

The public database provides shared storage for web-style apps, and the private database provides storage for user-specific data.

CloudKit also provides a user identity so that an iCloud account can be used for sign-in for your app.

CloudKit is a transfer mechanism rather than a full sync solution, but it can be used to build custom syncing solutions.

Resources

2317 questions
0
votes
0 answers

Core-data private configuration crashes

Trying to create Private configuration in Core data and export it to Cl;oudKit private database with NSPersistentCloudKitContainer. As a first step, inside the core data model, created a new private configuration. Created a new entity which by…
vrao
  • 545
  • 2
  • 12
  • 33
0
votes
0 answers

Cloudkit notifications only when certain parts of record are changed

I am creating an app that has profiles stored as records on CloudKit. When one user adds another user. The Requester is added to the requestees. Request list. (this is where I would like a notification with the requesters name going to the…
BlakePat
  • 75
  • 7
0
votes
0 answers

CloudKit fetch Operation recordMatchedBlock isn't working

Im trying fetch records from my private CloudKit DB.I could able to fetch the record.I stucked in accessing the fetched record func ReadRecord() { let predicate = NSPredicate(format: "name = %@", "samsung") let query = CKQuery(recordType:…
0
votes
0 answers

CNContact object save/upload iCloud

This is code to encode [CNContact] array to NSData and upload to iCloud There are problem is a limit to upload information to iCloud( Text of error here Error: Optional(
0
votes
0 answers

about syncing username, icon image on cloudkit. (swift)

I'd like to reduce API call that's why I added username and icon image filed to all tables on cloudkit. there is a userinfo table and it have a username and icon image field. and I add those into all tables like posting and comment when creating new…
0
votes
1 answer

Get Newest Record from CloudKit Database

I'm new to CloudKit (and haven't used NSPredicate much) and am looking to do something which, I'd imagine, is quite basic. I'd like to retrieve the data record with the newest creationDate. Right now I'm just pulling all the records and scooping up…
Rogare
  • 3,234
  • 3
  • 27
  • 50
0
votes
1 answer

Xamarin.iOS/How to retrieve a record from CloudKit by using only the Key

I was reading the Xamarin iOS documentation about CloudKit but it seems is not clear enough how to get the values of a specific record. In the code below is what the documentation says how to fetch a record by using the "RecordID" but the recordID…
Pavlos Mavris
  • 331
  • 1
  • 2
  • 12
0
votes
0 answers

How to make my iOS app appear in UICloudSharingController so that it could share a CKShare.url with my app to other users of my app?

What App Extensions and Entitlements or any other settings or anything else do I need to do in order to allow my app to use CloudKit sharing to share CKShare.url with other users of my app so that one user can share with another user by sending the…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

How to get timely update after CloudKit data modification?

I'm storing a record with field name "Folders" using an await for CloudKit API function CKDatabase.modifyRecords(...). To ensure my UI reflects the CloudKit data properly I then do an await for CKDatabase.records(matching: CKQuery). The retrieved…
tdl
  • 297
  • 3
  • 11
0
votes
0 answers

Is CKDatabase.save(_:completionHandler) really run synchronously?

CKDatabase save(_:completionHandler:) has a box that says the following below. Yet when I run the method, the completionHandler runs after the print statement after the call to the save method. I noticed the declaration of the method to be run…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

SwiftUI CloudKit CKContainer.default() issue

I try to connect my app with CloudKit. All setting was selected.When I start the App on iPhone 14 simulator the following errors was shown: CloudKit settings Xcode settings class CloudKitCategory : ObservableObject { @Published var…
Nico
  • 51
  • 4
0
votes
0 answers

Is there a workaround for CloudKit storing its private database on the user's iCloud account?

Similar to this post: Is privately-stored data in CloudKit stored on the user's iCloud account?. I was wondering if there is a way to bi-pass this, so that individuals iCloud accounts aren't being charged?.. My team is in the process of designing an…
0
votes
0 answers

CloudKit get CKRecord.Reference keys and values

I have this code that fetches all records of some type and covert it to a Dictionary But I don't understand how to load keys of a reference, like I do with parent records Can someone help me? var item: [String : Any] = [ : ] …
Pigna
  • 66
  • 6
0
votes
1 answer

Trying to create a public CKShare to a private database

I am trying to create a CKShare to the private database but with a public permission, meaning the user only needs to have the url and doesn't need to be specifically invited. The code I use to create the share is as follows but I always end up with…
Russ
  • 467
  • 3
  • 10
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
1 2 3
99
100