CloudKit Dashboard

RSS for tag

Monitor and manage the CloudKit database containers used by your apps.

Posts under CloudKit Dashboard tag

85 Posts

Post

Replies

Boosts

Views

Activity

Upload operation complete but not found by CKQuery few minutes
My app is backing up / restoring data in the app using CloudKit. I've been using the same code since early 2020, and I've had the problem since a few months ago (around September 2021). The problem is as below. eg) If 30 pieces of data are uploaded using OperationQueue, the upload is completed within a few seconds. No error occurred in operation.perRecordCompletionBlock. Check the number of requested data using the CloudKit console log. However, if i use CKQuery to check the data, 1 or 2 pieces of data are missing for several minutes (approximately 10 minutes). This is the same whether you send a Query from the CloudKit console or use CKQuery using swift code. And after a few minutes, all the data is uploaded. Now, some users are writing this problem in reviews, but I have no way to solve it.
1
0
631
Jan ’22
CloudKit Subscriptions "Expected this response but could not parse it"
So I'm trying to create a new subscription based on a predicate. The predicate is if there is a new Record (of type Message) with conversationID to a given conversation ID. Okay so I've enabled notifications on my device and subscriptions do get sent to CloudKit. But then when I go onto the CloudKit dashboard I get this response: Error fetching subscriptions. Expected this response but could not parse it: HTTP 200, text: [{"subscriptions":[{"type":"query","subscriptionId":"CDF6D9BD-77E5-41C6-BC18-3AD1A49E1A7D","query":{"recordType":"Message","filters":{"fieldName":"conversationID","fieldValue":{"type":"stringType","value":"C8356727-83A0-4981-9C62-48B891B376EB"},"type":"EQUALS"}]},"firesOn":["CREATE"],"firesOnce":false,"zone":{"zoneName":"_zoneWide","canonicalName":"_zoneWide","ownerRecordName":"_df807ec5aa88995e336922b90835b528"}}]} So I'm confused about this. It seems like that is the response I was looking for, and I'm not sure why it can't query it. I remember seeing in another question something about there being an issue with a listEmpty or something. But I'm querying on a string so I don't understand why it's not working. my CloudKit code looks like this: func setNotifications(convoID: String) {     let database = CKContainer.default().publicCloudDatabase     let pred = NSPredicate(format: "conversationID == %@", convoID)     let newSubscription = CKQuerySubscription(recordType: RecordType.Message, predicate: pred, options: [.firesOnRecordCreation])     let notification = CKSubscription.NotificationInfo()     notification.alertBody = "You have a new message"     notification.shouldSendContentAvailable = true     newSubscription.notificationInfo = notification     database.save(newSubscription) { (subscription, error) in          if let error = error {               print(error)               return          }          if let _ = subscription {               print("Hurrah! We have a subscription")          }     } } Thanks!
7
0
1.2k
Sep ’21
Upload operation complete but not found by CKQuery few minutes
My app is backing up / restoring data in the app using CloudKit. I've been using the same code since early 2020, and I've had the problem since a few months ago (around September 2021). The problem is as below. eg) If 30 pieces of data are uploaded using OperationQueue, the upload is completed within a few seconds. No error occurred in operation.perRecordCompletionBlock. Check the number of requested data using the CloudKit console log. However, if i use CKQuery to check the data, 1 or 2 pieces of data are missing for several minutes (approximately 10 minutes). This is the same whether you send a Query from the CloudKit console or use CKQuery using swift code. And after a few minutes, all the data is uploaded. Now, some users are writing this problem in reviews, but I have no way to solve it.
Replies
1
Boosts
0
Views
631
Activity
Jan ’22
CloudKit -No Containers
When I try to access the cloud database it says No Containers I have everything set up correctly. Everything in the pics below with the gray outline has the same exact identifier iCloud.com.myCo.myApp Entitlements: Xcode: developer.apple: I did a deep clean, closed Xcode, reopened it, deep clean again, build. Still No Containers. This is a paid account.
Replies
1
Boosts
0
Views
1.7k
Activity
Jan ’22
Telemetry charts missing
I am unable to preview any telemetry charts in the dashboard for a couple of weeks now. This happens for every member on our team and on any brower/device we try. Anyone else also experiencing this issue?
Replies
3
Boosts
0
Views
1.2k
Activity
Nov ’21
Can't enter date in Cloudkit Dashboard field
To create records in the Cloudkit Dashboard I was previously able to enter dates into a record field but now I can't. The dashboard won't accept any entries from the keyboard. I can enter all the other fields (text and double) but not a date. Why?
Replies
2
Boosts
0
Views
882
Activity
Oct ’21
CloudKit Subscriptions "Expected this response but could not parse it"
So I'm trying to create a new subscription based on a predicate. The predicate is if there is a new Record (of type Message) with conversationID to a given conversation ID. Okay so I've enabled notifications on my device and subscriptions do get sent to CloudKit. But then when I go onto the CloudKit dashboard I get this response: Error fetching subscriptions. Expected this response but could not parse it: HTTP 200, text: [{"subscriptions":[{"type":"query","subscriptionId":"CDF6D9BD-77E5-41C6-BC18-3AD1A49E1A7D","query":{"recordType":"Message","filters":{"fieldName":"conversationID","fieldValue":{"type":"stringType","value":"C8356727-83A0-4981-9C62-48B891B376EB"},"type":"EQUALS"}]},"firesOn":["CREATE"],"firesOnce":false,"zone":{"zoneName":"_zoneWide","canonicalName":"_zoneWide","ownerRecordName":"_df807ec5aa88995e336922b90835b528"}}]} So I'm confused about this. It seems like that is the response I was looking for, and I'm not sure why it can't query it. I remember seeing in another question something about there being an issue with a listEmpty or something. But I'm querying on a string so I don't understand why it's not working. my CloudKit code looks like this: func setNotifications(convoID: String) {     let database = CKContainer.default().publicCloudDatabase     let pred = NSPredicate(format: "conversationID == %@", convoID)     let newSubscription = CKQuerySubscription(recordType: RecordType.Message, predicate: pred, options: [.firesOnRecordCreation])     let notification = CKSubscription.NotificationInfo()     notification.alertBody = "You have a new message"     notification.shouldSendContentAvailable = true     newSubscription.notificationInfo = notification     database.save(newSubscription) { (subscription, error) in          if let error = error {               print(error)               return          }          if let _ = subscription {               print("Hurrah! We have a subscription")          }     } } Thanks!
Replies
7
Boosts
0
Views
1.2k
Activity
Sep ’21