A notable addition to CloudKit announced by Apple today – an API for server-to-server requests:
In addition to providing a web interface for users to access the same data as your app, you can now easily read and write to the CloudKit public database from a server-side process or script with a server-to-server key.
Benjamin Mayo explains what this means in practice:
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.
Somewhat coincidentally, the announcement follows the news of Facebook shutting down Parse, the popular backend-as-a-service tool for developers. I've tried a few CloudKit apps over the past year that would have benefitted from a web counterpart checking for changes in the background – hopefully this change will enable more functionality for those types of apps. A feed reader built entirely off CloudKit with timely updates would be interesting.