CloudKit iOS我该如何设置World Write Permission [英] CloudKit iOS how could I set World Write Permission

查看:92
本文介绍了CloudKit iOS我该如何设置World Write Permission的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iCloud仪表板上设置世界写许可 因为现在它被禁用了,真的需要它

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

推荐答案

简短的回答:不能.

对于正在运行的CloudKit应用,即使用户未在设备上登录其iCloud帐户,也始终可以读取容器的公共数据库.将记录保存到公共数据库并访问私有数据库要求用户登录.如果您的应用除了从公共数据库中读取数据以外,还需要检查用户是否登录,然后再保存记录.

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.

参考: 为CloudKit设计

CloudKit要求用户登录到iCloud帐户才能写入公共数据库.

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

如果您需要为没有iCloud帐户或不想登录的用户提供此类功能,则可能需要研究其他云解决方案.

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.

这篇关于CloudKit iOS我该如何设置World Write Permission的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆