CloudKit iOS how could I set World Write Permission

让人想犯罪 __ 提交于 2019-12-12 01:56:18

问题


How could I set World Write Permission on the iCloud Dashboard cause now it's disabled, and really need it


回答1:


Short answer: You can't.

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. If your app does more than read data from the public database, check to see whether the user is signed in before saving records.

Reference: Designing for CloudKit

CloudKit requires a user to be logged-in to an iCloud account to write to the public database.

If you need to provide such functionality for users who don't have an iCloud account, or don't want to sign-in, you may want to investigate a different cloud solution.

If you just need to write to the public database from your own server, you can use CloudKit Web Services with a server-to-server key.



来源:https://stackoverflow.com/questions/39508420/cloudkit-ios-how-could-i-set-world-write-permission

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!