Apple adds server API to CloudKit, unlocking new developer possibilities for the iCloud service
Apple has quietly added a server-side API to CloudKit, following an announcement on the developer news blog. This will enable developers to add a lot of functionality to apps powered by CloudKit, enabling developers to interact with the iCloud CloudKit database outside of user interaction with iOS, Mac or web apps. The web service API enables developers to run independent code on servers that can add, delete and modify records in the CloudKit stack.
Until now, interaction with CloudKit has been limited to the APIs Apple provided in apps. Although this was useful, it lacked the options for more advanced use — most modern apps rely on servers to perform tasks whilst users are away. With the addition of the web API, developers can create many more types of applications using CloudKit as the backend. For instance, an RSS reader app can now add new feed items to the CloudKit stack from the server. Before, this action could only occur when a user opened a CloudKit-powered app, which was essentially impractical and meant developers had to use other tools.