Accessing ICloud in web application

I want to use ICloud in one of my web application. The intent of my use is that I want to pull data from Icloud into my application. For now lets say I want to pull the contacts to my application. How can this be done?

Replies

I would recommend you start with this video from WWDC: CloudKit JS and Web Services. And also with this documentation: About CloudKit Web Services. There are other pieces of documentation that will be helpful also, like Designing for CloudKit.


Hope that helps as a starting point.

Is the cloudkit js only for storing data or can the user access data from iCloud via cloudkit.

If by "access data from iCloud" you mean things like Contacts, Calendar, Photos, or files in iCloud Drive, then no, that's not what CloudKit enables. CloudKit lets your app store information that it needs and then access that same information from other devices or via CloudKit JS. But your app will only have the ability to access the data that it stores.


I hope that answers the question.