CloudKit JS

RSS for tag

CloudKit JS provides access from your web app to your CloudKit app’s containers and databases.

Posts under CloudKit JS tag

29 Posts

Post

Replies

Boosts

Views

Activity

"Apple Sign-in button not working on Heroku web app: troubleshooting help needed"
I am trying to implement the Apple Sign-In feature on my web app, which is deployed on Heroku. However, I am encountering the following error in my browser console: DevTools failed to load source map: Could not parse content for https://cdn.apple-cloudkit.com/ck/2/resources/cloudkit.js.map: Unexpected token '<', "<!DOCTYPE "... is not valid JSON. I'm sure this is prob some simple thing that I am overlooking. I've searched through my code. Used ChatGPT as a tool to help me troubleshoot (actually what recommended I post here). Searched Stack Overflow. Can anyone help me troubleshoot this issue? Any suggestions would be greatly appreciated. Thanks!
3
0
2.0k
Feb ’23
Cloudkit Telemetry API
Hello, I'm new to software development sorry if this is worded incorrectly. I understand that Cloudkit telemetry data is available on the cloudkit dashboard. However, my question is if there is a public endpoint or any plans in the future for one to access telemetry data such as notifications, database stats, and usage. ex: https://api.icloud.apple.com/v1/telemetry/
0
0
1.4k
Nov ’22
Host server for app database
I am designing my first app as part of my degree program and I’m looking for information on how to store a database for my game like app in a way that all users of the game can access the info in the database. My game consists of draws that users are added to and if a user is part of a draw, they can add it to the app on their own phone to follow the progress of the draw, how many entries they have, how many entries others have, what colour they want their draw entries to be, etc. i am planning to have all of this info in a database but I’m not sure where to have the database so users can access it? Is that something game centre can do? Or if there is a totally different way I should be going about this, I’m open to suggestion. Or is that something cloudkit js does? Just saw that in the tags. Thanks
0
0
1.4k
Aug ’22
Loading large number of records into the CloudKit public database
Anyone know how to load a large number of records into the CloudKit public database? I need to load 1.2million records (about 150Mb) into the public database. no binary data. basically just a bunch of exchange rates that I need to have available to all my users. I've been trying for months. have tried: loading into core data on a device or simulator individually or in batches ranging from 400 records to 2500 (more than that exceeds batch size limits). it will start to sync and then stop. can often get it to restart by restarting device or similator but will eventually corrupt the database in iCloud requiring a reset of the environment. generally can get the load to go for a few days and load maybe 500k records before it breaks. to do that have to put delays up to a minute between batches loaded into core data. have tried doing it using the CloudKit.js framework and loading from a server. this works for a small number of records. but limits are really small doing it through that interface. after a while it locks you out. don't get anywhere near the number of records I need to load. I'm stuck. has anyone found a way? same issue on all versions of iOS - 14, 15, 16b1
2
1
1.9k
Jun ’22
CloudKit JS PWA
Hi, has anyone seen an example of Progressive Web App (PWA) using cloudkit js? I am exploring that avenue for multiplatform support of an existing SwiftUI app using CoreData and CloudKit. I see that this cloudkit.js demo uses vercel https://cloudkitjs.vercel.app/ so perhaps something based on next.js would be a natural progression here, but I don't really have a preference for one of the many frameworks out there (pwabuilder, angular, react, vue, next, and the list goes on and on) Thanks
1
0
1.6k
Jun ’22
Streaming audio stored in CloudKit
Short version: Is it a terrible hack to use the URLs to remote CKAsset? And are they permanent? I'm building an app that plays sound using AV(Queueu)Player and use CloudKit with CoreData to store the metadata. I was planning to also store the audio assets there, as CKAssets, but it seems like it's not really built for this use case, at least if I want to avoid downloading the files first. What I mean is, AVPlayer plays audio from URLs, but CloudKit doesn't provide a simple way to get the URL for a remote asset, so it would seem I have to first sync the assets down to the local disk, which is what I want to avoid, I would prefer to stream them. There is a way to get the URL, but only using CloudKit JS APIs, as described in [1], but is that a hacky workaround or something we can rely on? And are these URLs permanent? Finally, silly question perhaps, but even if the URLs are solid, can I safely stream audio from them? [1] https://stackoverflow.com/questions/35104247/obtaining-ckasset-url-without-downloading-data
0
0
1.6k
May ’22
How long does a downloadURL of an asset persist?
https://developer.apple.com/documentation/cloudkitjs/cloudkit/database/1628735-saverecords mentions that we can use the downloadURL to provide a link to the user, however it seems this URL will expire after some time, and it will return 410 GONE as http status code when it expires. How long does the link persist before it expires, is it documented anywhere?
1
0
1.6k
Jan ’22
"Apple Sign-in button not working on Heroku web app: troubleshooting help needed"
I am trying to implement the Apple Sign-In feature on my web app, which is deployed on Heroku. However, I am encountering the following error in my browser console: DevTools failed to load source map: Could not parse content for https://cdn.apple-cloudkit.com/ck/2/resources/cloudkit.js.map: Unexpected token '<', "<!DOCTYPE "... is not valid JSON. I'm sure this is prob some simple thing that I am overlooking. I've searched through my code. Used ChatGPT as a tool to help me troubleshoot (actually what recommended I post here). Searched Stack Overflow. Can anyone help me troubleshoot this issue? Any suggestions would be greatly appreciated. Thanks!
Replies
3
Boosts
0
Views
2.0k
Activity
Feb ’23
Cloudkit Telemetry API
Hello, I'm new to software development sorry if this is worded incorrectly. I understand that Cloudkit telemetry data is available on the cloudkit dashboard. However, my question is if there is a public endpoint or any plans in the future for one to access telemetry data such as notifications, database stats, and usage. ex: https://api.icloud.apple.com/v1/telemetry/
Replies
0
Boosts
0
Views
1.4k
Activity
Nov ’22
Host server for app database
I am designing my first app as part of my degree program and I’m looking for information on how to store a database for my game like app in a way that all users of the game can access the info in the database. My game consists of draws that users are added to and if a user is part of a draw, they can add it to the app on their own phone to follow the progress of the draw, how many entries they have, how many entries others have, what colour they want their draw entries to be, etc. i am planning to have all of this info in a database but I’m not sure where to have the database so users can access it? Is that something game centre can do? Or if there is a totally different way I should be going about this, I’m open to suggestion. Or is that something cloudkit js does? Just saw that in the tags. Thanks
Replies
0
Boosts
0
Views
1.4k
Activity
Aug ’22
Loading large number of records into the CloudKit public database
Anyone know how to load a large number of records into the CloudKit public database? I need to load 1.2million records (about 150Mb) into the public database. no binary data. basically just a bunch of exchange rates that I need to have available to all my users. I've been trying for months. have tried: loading into core data on a device or simulator individually or in batches ranging from 400 records to 2500 (more than that exceeds batch size limits). it will start to sync and then stop. can often get it to restart by restarting device or similator but will eventually corrupt the database in iCloud requiring a reset of the environment. generally can get the load to go for a few days and load maybe 500k records before it breaks. to do that have to put delays up to a minute between batches loaded into core data. have tried doing it using the CloudKit.js framework and loading from a server. this works for a small number of records. but limits are really small doing it through that interface. after a while it locks you out. don't get anywhere near the number of records I need to load. I'm stuck. has anyone found a way? same issue on all versions of iOS - 14, 15, 16b1
Replies
2
Boosts
1
Views
1.9k
Activity
Jun ’22
CloudKit JS PWA
Hi, has anyone seen an example of Progressive Web App (PWA) using cloudkit js? I am exploring that avenue for multiplatform support of an existing SwiftUI app using CoreData and CloudKit. I see that this cloudkit.js demo uses vercel https://cloudkitjs.vercel.app/ so perhaps something based on next.js would be a natural progression here, but I don't really have a preference for one of the many frameworks out there (pwabuilder, angular, react, vue, next, and the list goes on and on) Thanks
Replies
1
Boosts
0
Views
1.6k
Activity
Jun ’22
Streaming audio stored in CloudKit
Short version: Is it a terrible hack to use the URLs to remote CKAsset? And are they permanent? I'm building an app that plays sound using AV(Queueu)Player and use CloudKit with CoreData to store the metadata. I was planning to also store the audio assets there, as CKAssets, but it seems like it's not really built for this use case, at least if I want to avoid downloading the files first. What I mean is, AVPlayer plays audio from URLs, but CloudKit doesn't provide a simple way to get the URL for a remote asset, so it would seem I have to first sync the assets down to the local disk, which is what I want to avoid, I would prefer to stream them. There is a way to get the URL, but only using CloudKit JS APIs, as described in [1], but is that a hacky workaround or something we can rely on? And are these URLs permanent? Finally, silly question perhaps, but even if the URLs are solid, can I safely stream audio from them? [1] https://stackoverflow.com/questions/35104247/obtaining-ckasset-url-without-downloading-data
Replies
0
Boosts
0
Views
1.6k
Activity
May ’22
How long does a downloadURL of an asset persist?
https://developer.apple.com/documentation/cloudkitjs/cloudkit/database/1628735-saverecords mentions that we can use the downloadURL to provide a link to the user, however it seems this URL will expire after some time, and it will return 410 GONE as http status code when it expires. How long does the link persist before it expires, is it documented anywhere?
Replies
1
Boosts
0
Views
1.6k
Activity
Jan ’22