Apple's CloudKit framework for automating apps' storage and retrieval of user data "in the cloud" has learned a new trick. Developers can now read and write data in their app's public database from a server-side process or script.
Apple launched CloudKit in 2014 to provide third party app developers with easy to use, secure, scalable iCloud data storage for their users. It used the technology to launch its own new Photos app, which automatically stores users' photos in an iCloud database that keeps images in sync between devices.
Last summer, the company added support for accessing CloudKit app data via JavaScript and Web Services, enabling developers to build websites that present the same data to users who sign in with their Apple ID. Apple used this feature to develop a iCloud web client for Notes, presenting a web view of the same content users see when they open their Notes app on iOS 9 or a Mac.
Apple has now introduced the ability for developers to access their iCloud data via an automated server-to-server request, making it possible to build apps and web sites that not only store data, but can update, process or otherwise editor or modify user data stored on Apple's servers.
An app like Photos, for example, could offer cloud-based image processing, while an app like Notes could update users' documents with live data or perform scripted server-side editing (such as optical character recognition in images).
The new functionality makes CloudKit a more flexible and powerful tool for app and web developers who want to leverage cloud-based storage and processing without rolling their own server-side implementation, enabling them to focus on client app features instead.
8 Comments
Okay, that's all well and good, but when is Apple going to {{ insert bizarre use case that affects only you out of a billion other users, and has nothing to do with the topic at hand }}
Example: Okay, iCloud server-side scripting is all well and good, but when is Apple going to put polka dots on the iPad cases so they're easier to see against my Paisley design duvet covers?
If I don't see polka dot iPad cases this year then I'll really have no choice but to buy a Surface machine.
The enterprise developer in me is cheering.
Related to this general topic of programmatic use of iCoud:
Is iCloud a general purpose storage repository, allowing app developers to define their own datasets and store them in iCloud? Or, are app developers limited to working with the data sets that Apple hosts on iCloud today (photos,notes, docs, etc.)?
Example: if I were writing an app to collect Climate Change data from sensors throughout the world, could I write the app to use iCloud as a central repository for that data?