CloudKit public 无需 iCloud 帐户即可写入数据库
CloudKit public database writeable without iCloud account
有什么方法可以让没有 iCloud 帐户的用户可以写入 CloudKit public 数据库?
根据 Apple 文档,您必须登录 iCloud 才能将数据写入 publica 数据库
For a running CloudKit app, a container’s public database is always
readable, even when the user is not signed in to their iCloud
account on the device. Saving records to the public database and
accessing the private database requires that the user be signed in
了解一下 here
您可以使用 API 键在服务器端执行此操作,并且您可以在用户未登录时调用您自己的 API。
有什么方法可以让没有 iCloud 帐户的用户可以写入 CloudKit public 数据库?
根据 Apple 文档,您必须登录 iCloud 才能将数据写入 publica 数据库
For a running CloudKit app, a container’s public database is always readable, even when the user is not signed in to their iCloud account on the device. Saving records to the public database and accessing the private database requires that the user be signed in
了解一下 here
您可以使用 API 键在服务器端执行此操作,并且您可以在用户未登录时调用您自己的 API。