Questions tagged [cloudkit-web-services]
70 questions
3
votes
2 answers
CloudKitJS Server to Server Configure
I'm having trouble getting this to work. I keep getting the following error:
[Error: No key provided to sign]
Here is my config code:
CloudKit.configure({
services: {
fetch: fetch
},
containers: [{
containerIdentifier:…

shakked
- 783
- 8
- 24
3
votes
0 answers
Receive Cloudkit push notifications in android
How to register for cloudkit push notifications in android?
How to receive?
Has anyone tried this?
Thanks!

Ted
- 22,696
- 11
- 95
- 109
2
votes
0 answers
Cannot authenticate CloudKit JS using apiTokenAuth only without serverToServerKeyAuth
I am building a web in Node that uses data stored in iCloud using CloudKit on a Public Database. To query the data I have created an apiToken and a serverToServerKey. For the first one I have a string but for the server to server authentication I've…

javierdemartin
- 595
- 6
- 24
2
votes
1 answer
How to save records with Asset field use server-to-server cloudkit.js
I want to use server-to-server cloudkit js. to save record with Asset field.
the Asset field is a m4a audio. after saved, the audio file is corrupt to play
The Apple's Doc is not clear about the Asset field.
In a record that is being saved to the…

Haozes
- 352
- 2
- 12
2
votes
1 answer
iCloud Cloudkit CKFetchWebAuthTokenOperation
My iOS app checks the iCloud account status and then requests an iCloud WebToken using the following method:
@objc static func fetchWebAuthToken ( _ apiToken : String, _ callback : @escaping CCallbackFunctionWithBoolAndString )
{
let…

Milan Egon Votrubec
- 3,696
- 2
- 10
- 24
2
votes
3 answers
ckWebAuthToken retrieval via postMessage using CloudKit Web Services
I am trying to retrieve a web auth token for CloudKit using their web services and postMessage API token. According to Apple's documentation, token should be returned as part of "data" object through the message callback, but all I am getting is the…

Sieras
- 21
- 2
2
votes
0 answers
(CloudKit JS) Is it possible upload some file (.zip/.png/..) and that the user can view it?
Is it possible upload some file (.zip/.png/..) (with CloudKitJS) and that the user can view it in his/her dashboard https://www.icloud.com/?
Or the stored data (with CloudKit JS) are only available accessing by programming (?)
Thanks for your…

G. Mizael Mtz Hdz
- 41
- 7
2
votes
0 answers
CloudKit Server-To-Server and PHP
The following PHP code working perfect in development environment but on production environment returns error :
{"uuid":"xxxxx", "serverErrorCode":"AUTHENTICATION_FAILED", "reason":"Authentication failed"}
any idea ?
function…

Giannis
- 133
- 2
- 10
2
votes
1 answer
Getting CloudKit CKAsset URL?
I'd like to share a CloudKit asset in the public database with people who aren't using my app. From the CKAsset class, there's only a fileURL property, which points to a local file, so no URL given.
On the documentation for CloudKit Web Services,…

Andrew
- 7,693
- 11
- 43
- 81
2
votes
1 answer
Fetching CloudKit Records By Name and Query in PHP
I've got an app using CloudKit and I'm trying to build a simple web interface to pull the data out of CloudKit so users can view the information. The login is working perfectly, but I can't find any samples on how to structure the requests for…

Dexter
- 1,128
- 3
- 25
- 51
1
vote
0 answers
CloudKit Bad Request on Users Record Update with Web Services API
I added a custom field to the default Users record type in CloudKit, and I'm trying to push a value to that new field.
Here's how my request is structured in Node JS:
var query = {
operations :[{
operationType: 'forceUpdate',
record:{
…

Clifton Labrum
- 13,053
- 9
- 65
- 128
1
vote
0 answers
iOS: Cloudkit link is not working in iOS13
I am using Collaborate in my CloudKit implementation on iOS. When I share data with another user, the other user is able to click on the link in email and open it directly via Apple Mail app, but if the user tries to copy link and open it in browser…

Rishabh Wadhwa
- 171
- 2
- 8
1
vote
1 answer
How to perform CloudKit Server-to-Server authentication
I'm following Composing Web Service Requests
To perform the
Discovering All User Identities (GET users/discover).
The idea is to get this simple request working and later make more sophisticated requests like uploading an asset.
The code below is…

thstart
- 397
- 3
- 15
1
vote
2 answers
Add CloudKit JS to Vue Project
I'm trying to add CloudKit JS to a new Vue project. Ideally I'd be able to access CloudKit's functions from any component in my app. I'm brand new to Vue, so please go easy on me. :)
So far, I've tried putting the following in main.js:
var fetch =…

Clifton Labrum
- 13,053
- 9
- 65
- 128
1
vote
1 answer
How can one pass a date to CloudKit via CK Web Services from a PHP script?
I am writing a PHP script to send data to a CloudKit database via CK Web Services. It works well with string data, but I am having trouble passing a date from PHP to a CK Date/Time field.
CK returns dates as a 13-digit TIMESTAMP. So, the following…

Peter Wiley
- 820
- 7
- 19