CloudKit Console

RSS for tag

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

Posts under CloudKit Console tag

96 Posts

Post

Replies

Boosts

Views

Activity

CloudKit console don't show subscriptions
Hello. I want to use CloudKit to send notifications to users of my app. I created record type for notification and I use this code to sub let subscription = CKQuerySubscription(recordType: "Notifications", predicate: NSPredicate(format: "TRUEPREDICATE"), options: .firesOnRecordCreation) let info = CKSubscription.NotificationInfo()       info.titleLocalizationKey = "%1$@"       info.titleLocalizationArgs = ["title"]       info.alertLocalizationKey = "%1$@"       info.alertLocalizationArgs = ["content"]       info.shouldBadge = true       info.soundName = "default"       subscription.notificationInfo = info    CKContainer(identifier: "iCloud.****").publicCloudDatabase.save(subscription, completionHandler: { subscription, error in             if error == nil {                 // Subscription saved successfully               print(subscription?.notificationInfo?.description)             } else {                 // Error occurred               print(error?.localizedDescription)             }         }) The subscription is successful and when I create a record via from CloudKit, my local device received push notification normally. My issue is that CloudKit console says "There are no subscriptions in this database!!!" Do anyone say how I can see subscription?
0
1
1.1k
Oct ’22
CloudKit query incorrectly sorted
I have a simple CloudKit query over a given record type, with a sort descriptor for one of the attribute, which is of type String, and the results come out in the wrong order. This is even visible in the CloudKit console (see screenshot, ordering is by title). Can anyone explains what happens here ? I've checked that there wasn't any weird characters in the attributes. Thanks.
0
0
1.3k
Oct ’22
Did not return 'com.apple.coredata.cloudkit.shared.subscription'
I work with Core Data and I needed to change CloudKit container in Singing & Capabilities. I've done it successed, I think. But when I run my app, NSCloudKitMirroringDelegate returns the error with user info: NSLocalizedFailureReason=Subscription save succeeded but did not return 'com.apple.coredata.cloudkit.shared.subscription' as a saved subscription I've registred my app's ID and I've checked iCloud. Thanks in advanced.
1
3
1.4k
Oct ’22
No ModifedAt Index in CloudKit
Hi, I do not see an option to add 'modifiedAt' as an index to a record in a public database in CloudKit. I've added the modifiedTimsestamp index for both QUERYABLE and SORTABLE but that doesn't seem to be loading the Public database as expected. I can write to it just fine. I can't find any documentation stating that modifiedAt has been deprecated in favor of something else. The only thing I can find is this video from WWDC2020 on how to configure a Public database: https://developer.apple.com/videos/play/wwdc2020/10650/ I've been following along with Donny Wals CoreData book in attempting to learn this stuff. Any help would be greatly appreciated. Thanks Edit: I should probably mention I have reset the environment numerous times. I seem to share some of the pain in this post: https://developer.apple.com/forums/thread/682698
1
1
1.9k
Sep ’22
CloudKit Console: Containers do not appear
I am new to CloudKit - and my test on the Mac (Swift, M1, Monterey, XCode 14 Beta 4) which creates records appears to be working. However, when I log into the CloudKit Console, using the same account as the iCloud account my Mac is logged into, no containers appear. I have tried this several times over 2 days, and no containers appear in the console. The container I am using appears in iCloud storage (via System Preferences > iCloud > Manage), so it appears to be there on iCloud. Am I doing something wrong? What I want to do is query the data, which, I understand, you must use the Console to make it queryable. (It would be nice to be able to do this programmatically, but haven't found a way yet). Thank you.
1
2
1.4k
Aug ’22
postgreSQL 14.2
Dear Sir I just installed postgreSQL 14.2 on my MacBook Air but I have a problem with the app pgAdmin 4, I can't open it, it's error. This is the error message "The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10669 "(null)" UserInfo={_LSLine=3829, _LSFunction=_LSOpenStuffCallLocal}" I hope you can help me to fix that problem.
0
0
1.3k
Apr ’22
Problem giving admin user access
I have employed a developer and given him full admin rights. He tells me he can't continue because he doesn't have access to the developer console . He needs to "add inapp purchase support and then build and download the profile" I thought the whole point of giving someone admin permission is so they can do whatever they need to submit an app. I have an individual account
0
0
1k
Feb ’22
Best Practice for Connecting to a SQL Database From iOS app
I couldn't find a related discussion on here that wasn't 5-8 years old, so I'm submitting it to the forum for help. :-) I need to connect to a SQL database, and read and write to the DB from my app. Since this is personal health data from a healthcare organization, I will need to implement a secure form of data transfer - point to point encryption, or whatever the best practice is for this. I can't find much on this topic. Many apps connect to hospital data, but I can't find how it is being done from iOS. Basically, how is this being done? what's the basic architecture, and lastly might there be a current tutorial on these topics? Thank you in advance! Not sure if the tag I chose is the correct one for this topic.
0
0
623
Nov ’21
CloudKit console don't show subscriptions
Hello. I want to use CloudKit to send notifications to users of my app. I created record type for notification and I use this code to sub let subscription = CKQuerySubscription(recordType: "Notifications", predicate: NSPredicate(format: "TRUEPREDICATE"), options: .firesOnRecordCreation) let info = CKSubscription.NotificationInfo()       info.titleLocalizationKey = "%1$@"       info.titleLocalizationArgs = ["title"]       info.alertLocalizationKey = "%1$@"       info.alertLocalizationArgs = ["content"]       info.shouldBadge = true       info.soundName = "default"       subscription.notificationInfo = info    CKContainer(identifier: "iCloud.****").publicCloudDatabase.save(subscription, completionHandler: { subscription, error in             if error == nil {                 // Subscription saved successfully               print(subscription?.notificationInfo?.description)             } else {                 // Error occurred               print(error?.localizedDescription)             }         }) The subscription is successful and when I create a record via from CloudKit, my local device received push notification normally. My issue is that CloudKit console says "There are no subscriptions in this database!!!" Do anyone say how I can see subscription?
Replies
0
Boosts
1
Views
1.1k
Activity
Oct ’22
CloudKit query incorrectly sorted
I have a simple CloudKit query over a given record type, with a sort descriptor for one of the attribute, which is of type String, and the results come out in the wrong order. This is even visible in the CloudKit console (see screenshot, ordering is by title). Can anyone explains what happens here ? I've checked that there wasn't any weird characters in the attributes. Thanks.
Replies
0
Boosts
0
Views
1.3k
Activity
Oct ’22
Did not return 'com.apple.coredata.cloudkit.shared.subscription'
I work with Core Data and I needed to change CloudKit container in Singing & Capabilities. I've done it successed, I think. But when I run my app, NSCloudKitMirroringDelegate returns the error with user info: NSLocalizedFailureReason=Subscription save succeeded but did not return 'com.apple.coredata.cloudkit.shared.subscription' as a saved subscription I've registred my app's ID and I've checked iCloud. Thanks in advanced.
Replies
1
Boosts
3
Views
1.4k
Activity
Oct ’22
No ModifedAt Index in CloudKit
Hi, I do not see an option to add 'modifiedAt' as an index to a record in a public database in CloudKit. I've added the modifiedTimsestamp index for both QUERYABLE and SORTABLE but that doesn't seem to be loading the Public database as expected. I can write to it just fine. I can't find any documentation stating that modifiedAt has been deprecated in favor of something else. The only thing I can find is this video from WWDC2020 on how to configure a Public database: https://developer.apple.com/videos/play/wwdc2020/10650/ I've been following along with Donny Wals CoreData book in attempting to learn this stuff. Any help would be greatly appreciated. Thanks Edit: I should probably mention I have reset the environment numerous times. I seem to share some of the pain in this post: https://developer.apple.com/forums/thread/682698
Replies
1
Boosts
1
Views
1.9k
Activity
Sep ’22
CloudKit Console Database Section Not Working
Since few days the database section on Cloudkit Console is not loading for me. Found this error upon inspecting the network console: TypeError: Cannot read properties of undefined (reading 'permissions') Uncaught error: TypeError: Cannot read properties of undefined (reading 'permissions') Shows this on browser: Any idea what the issue could be?
Replies
4
Boosts
0
Views
1.8k
Activity
Sep ’22
CloudKit Console: Containers do not appear
I am new to CloudKit - and my test on the Mac (Swift, M1, Monterey, XCode 14 Beta 4) which creates records appears to be working. However, when I log into the CloudKit Console, using the same account as the iCloud account my Mac is logged into, no containers appear. I have tried this several times over 2 days, and no containers appear in the console. The container I am using appears in iCloud storage (via System Preferences > iCloud > Manage), so it appears to be there on iCloud. Am I doing something wrong? What I want to do is query the data, which, I understand, you must use the Console to make it queryable. (It would be nice to be able to do this programmatically, but haven't found a way yet). Thank you.
Replies
1
Boosts
2
Views
1.4k
Activity
Aug ’22
postgreSQL 14.2
Dear Sir I just installed postgreSQL 14.2 on my MacBook Air but I have a problem with the app pgAdmin 4, I can't open it, it's error. This is the error message "The application cannot be opened for an unexpected reason, error=Error Domain=NSOSStatusErrorDomain Code=-10669 "(null)" UserInfo={_LSLine=3829, _LSFunction=_LSOpenStuffCallLocal}" I hope you can help me to fix that problem.
Replies
0
Boosts
0
Views
1.3k
Activity
Apr ’22
Problem giving admin user access
I have employed a developer and given him full admin rights. He tells me he can't continue because he doesn't have access to the developer console . He needs to "add inapp purchase support and then build and download the profile" I thought the whole point of giving someone admin permission is so they can do whatever they need to submit an app. I have an individual account
Replies
0
Boosts
0
Views
1k
Activity
Feb ’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
[CloudKit Console] Crashes with 500 internal server error
I needed to verify something on the CloudKit console but it doesn't seem to be working even though the system status says that it's operational: http://developer.apple.com/system-status/ Is anyone experiencing the same issue? I can't load the databases, zones nor saved queries. For Apple folks, here's the feedback number: FB9756611
Replies
2
Boosts
0
Views
1.3k
Activity
Nov ’21
Best Practice for Connecting to a SQL Database From iOS app
I couldn't find a related discussion on here that wasn't 5-8 years old, so I'm submitting it to the forum for help. :-) I need to connect to a SQL database, and read and write to the DB from my app. Since this is personal health data from a healthcare organization, I will need to implement a secure form of data transfer - point to point encryption, or whatever the best practice is for this. I can't find much on this topic. Many apps connect to hospital data, but I can't find how it is being done from iOS. Basically, how is this being done? what's the basic architecture, and lastly might there be a current tutorial on these topics? Thank you in advance! Not sure if the tag I chose is the correct one for this topic.
Replies
0
Boosts
0
Views
623
Activity
Nov ’21