Questions tagged [cloudkit-web-services]

69 questions
1
vote
1 answer

Cloudkit JS sample code?

I have an iOS app using Cloudkit and now I'm developing a web application (with HTML5, CSS and Javascript) to register users. I already read the documentation and follow some tutorials, but nothings seems to work. Sometimes there is no error, so i…
1
vote
1 answer

Angular 2 and Cloudkit JS - resolving response promises

I'm trying to get Angular 2 work with Cloudkit JS, currently a simple Todo. todo.request.js: var todorequest = { get: function(){ var container = CloudKit.getDefaultContainer(); var publicDB = container.publicCloudDatabase; …
1
vote
1 answer

How to authenticate CloudKit JS in react JS or React-Redux JS

I am very new to web development. I have downloaded the CloudKit JS & adding in index.html in script tag. And I made sure it loads before my react-redux bundle JS. I have…
1
vote
1 answer

React native Cloudkit push notifications in android

How to register for cloudkit push notifications in react-native android? Thanks!
Ted
  • 19,425
  • 10
  • 78
  • 99
1
vote
1 answer

Using CloudKit public storage to store messages - security concerns

I'm wanting to use CloudKit public storage to power a messaging app. All messages would be stored on the public storage, with the sender and recipient Users as relationships, that way someone using my app can fetch all messages where they are the…
Andrew
  • 6,993
  • 10
  • 39
  • 72
1
vote
3 answers

Can I access standard iOS Notes and Reminders' data using CloudKit web services or something like that?

I am thinking of building an Android app that fetches Notes and Reminders associated with an Apple ID. Is it possible to access them with http requests somehow? icloud.com uses their data, so I thought maybe it is exposed via some API, but I cannot…
alchemiss
  • 388
  • 4
  • 16
1
vote
1 answer

How do I query for nil values with CloudKit.js?

Using CloudKit.js, how do I construct a query that matches items where a field is nil? Every permutation I've tried fails - either it's clearly matching on a string value (i.e. "null" or "nil") or it throws an error if I actually try to pass…
Hunter
  • 4,273
  • 5
  • 37
  • 44
1
vote
2 answers

Updating a record with CloudKit JS

CloudKit JS offers methods to save, delete and fetch records but there is no easy methods to update en existing one. The documentation explains how to do it: var query = { operationType : 'forceUpdate', recordType: 'List', record : { …
Armand Grillet
  • 2,648
  • 2
  • 23
  • 50
1
vote
0 answers

Is it a way to create CloudKit account based on Facebook login button?

The issue with CloudKit web services is the authentication. Who use CloudKit from browser or from a web component on Android, will not have Apple ID, so they have to go though the registration process. choose Apple ID set birthday set first / last…
János
  • 27,206
  • 24
  • 130
  • 270
1
vote
1 answer

How to create auto-increment ID's in CloudKit JS?

Is there a solution for this in CloudKit JS? I have not been able to write a successful query to even get the ID of a Record. The question in this link was here before, it is related if you'd like to take a look. How to query for Metadata in…
SamYoungNY
  • 5,716
  • 4
  • 22
  • 36
0
votes
1 answer

CloudKit REST API

I'm trying to use the CloudKit API to create records in the public database from my server, using a server-to-server key. I'm using the following shell script to generate the curl command. When I run it, the response from Apple just says there was…
Gargoyle
  • 7,401
  • 10
  • 55
  • 99
0
votes
1 answer

CloudKit Server-to-Server auth: Keep getting 401 Authentication failed

I have been recently exploring the CloudKit and related frameworks. I got the communication with my app working, as well as with my website using CloudKitJS. Where I am struggling is the Server-to-Server communication (which I would need for…
0
votes
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
  • 9,827
  • 7
  • 45
  • 86
0
votes
1 answer

401 Error on CloudKit Server-to-Server Authentication on Node JS

I'm trying to query my public CloudKit database using server-to-server authentication. I've generated the key according to Apple's docs, but no matter what I do I get this error: 401 - Unauthorized data: { uuid: '...', serverErrorCode:…
0
votes
1 answer

Unable to connect with CloudKit-JS CONFIGURATION_ERROR

I am trying to set up Cloudkit-JS to access an existing Cloudkit database through a web browser. The db itself works fine and I have an iOS app which connects to the db without any problems. I've generated an API Token in the Cloudkit Dashboard and…
GoPlaces
  • 3
  • 2