Questions tagged [icloud-api]
111 questions
32
votes
12 answers
Exposing an app's ubiquitous container to iCloud Drive in iOS 8
I'm developing an iCloud-enabled app where users will be able to import and export files via iCloud Drive. When browsing iCloud Drive, either using the UIDocumentPickerViewController (iOS 8) or the Finder (OS X Yosemite), I can see directories…

hagi
- 11,503
- 3
- 35
- 48
20
votes
2 answers
How (and when) do I use iCloud's encodeSystemFields method on CKRecord?
encodeSystemFields is supposed to be used when I keep records locally, in a database.
Once I export that data, must I do anything special when de-serializing it?
What scenarios should I act upon information in that data?
As a variation (and if not…

makerofthings7
- 60,103
- 53
- 215
- 448
20
votes
3 answers
iCloud NSUbiquitousKeyValueStore initial sync/access delay - how to handle?
I'm using NSUbiquitousKeyValueStore to store some app settings. My logic is: when I save data locally, I save it to NSUbiquitousKeyValueStore also as a backup. When I need settings, I read locally and I only use iCloud key-value store if no data is…

Tertium
- 6,049
- 3
- 30
- 51
19
votes
2 answers
iCloud: Callback for NSFileManager's startDownloadingUbiquitousItemAtURL?
I am using NSFileManager's startDownloadingUbiquitousItemAtURL to download file from iCloud to local copy (the local does not yet have the copy of the file in this case). I can't seem to find the callback for this process. I need the callback to…

user523234
- 14,323
- 10
- 62
- 102
15
votes
1 answer
CloudKit not returning the most recent data
I am having this issue where I save something to the icloud using CloudKit but immediately fetching the results doesn't return the latest data inserted.
Example
let todoRecord = CKRecord(recordType: "Todos")
todoRecord.setValue(todo, forKey:…

Shrikar
- 840
- 1
- 8
- 30
12
votes
2 answers
Getting addresses from iCloud contacts via CloudKit JS
I want my web application allow to import user contacts (particularly addresses) from iCloud contacts.
Something similar to what Google People API provides for Google Contacts.
The scenario is that, a user comes to my site using a desktop browser…

user3697159
- 121
- 6
10
votes
1 answer
How do I check if user can login to CloudKit?
Can I use the same way I check for iCloud availability or is there some other way of checking for CloudKit availability?

ninjaneer
- 6,951
- 8
- 60
- 104
9
votes
2 answers
Can I use iCloud API in web application?
I am new for iCloud API.
I want to know can we use iCloud API in web Application ?
Is it possible to access iCloud API via web ?

Sandip
- 981
- 1
- 6
- 22
8
votes
1 answer
NSInternalInconsistencyException ( error during execution of SQL string 'INSERT INTO Y_UBMETA(YPEERID, YTRANSACTIONNUMBER) )
iOS iCloud
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'error during execution of SQL string 'INSERT INTO Y_UBMETA(YPEERID, YTRANSACTIONNUMBER)
Unresolved error Error Domain=NSCocoaErrorDomain Code=134312…

aliasgar
- 359
- 4
- 20
7
votes
2 answers
Is there an iCloud web api?
I'd like to be able to access a user's iCal and create events from my server, is this possible, preferably with some kind of OAuth2 setup like with Google Calendar? If so where can I find documentation on the API?

Mohamed Hafez
- 8,621
- 7
- 41
- 49
7
votes
2 answers
how to deal with (A Document being saved by MyApp) files?
My application uses iCloud. My application stores all its data in 1 document and there should never be more than this 1 document. However, sometimes my NSMetadataQuery returns 2 documents:
0: Documents/(A Document being saved bt MyApp)/MyDoc.ext
1:…

Reneli
- 1,756
- 2
- 16
- 26
6
votes
1 answer
get icloud web service endpoints to fetch data
My question may look silly but I am asking this after too much search on Google, yet not have any clue.
I am using iCloud web services. For that I have converted this Python code to PHP. https://github.com/picklepete/pyicloud
Up to this, everything…

Rushabh Dave
- 1,122
- 9
- 13
6
votes
6 answers
Cloudkit gives error when trying to save a record
I am trying to simply save a record to a users private database but when I run privateDB.saveRecord() I get an error saying
Not Authenticated" (9/1002); "CloudKit access was denied by user settings"; Retry after 3.0 seconds>.
This account is able…

Diericx
- 418
- 8
- 24
5
votes
1 answer
Streaming from iCloud?
Is it possible to recreate a scenario like itunes match with iCloud APIs available to-date (i am writing/editing this in april 2012) .. specifically..I mean something like this>
A user creates a media document (audio or video) in my app...and it is…

Earl Grey
- 7,426
- 6
- 39
- 59
5
votes
0 answers
icloud doesn't update the download precess
Usually, my code is ok to download the files from iCloud. But sometimes the downloading process will not be updated.
Following are some code snips:
start download:
NSFileManager* fm = [NSFileManager defaultManager];
if (
Karl Yu
- 137
- 2
- 10