Search code examples
iosicloudcloudkit

CloudKit and iCloud account


I've been reading documentation and watching a few videos on this subject, and in all of them they mention the fact that users need to be authenticated with an iCloud account. My question is: if users don't have an iCloud account they won't be able to update the public database? And to put it in a little more context; can the apple account (the one the user needs to download stuff from the apple store) wouldn't be enough to update the public database and gain access to the private database?

Thank you.


Solution

  • if users don't have an iCloud account they won't be able to update the public database?

    From Apple's Designing for CloudKit doc:

    Saving records to the public database and accessing the private database in any way requires the presence of an active iCloud account on the device.

    So you're right.


    can the apple account (the one the user needs to download stuff from the apple store) wouldn't be enough to update the public database and gain access to the private database?

    This is a slightly unclear question - cases where an Apple ID is set up to download from the App Store and isn't set up for iCloud are very rare. I would assume that nearly all devices that can download your app likely have an iCloud account attached to them.