CloudKit: Zone was purged by the user

假装没事ソ 提交于 2019-12-14 03:54:30

问题


One of my users deleted their cloud data, and now they are getting a "Zone was purged by the user" message. I believe it is returning error CKErrorUserDeletedZone, when fetching the zone.

The documentation states the following:

  • The user deleted this zone through the settings UI. Your client should either remove its local data or prompt the user before attempting to re-upload any data to this zone. */

It is not clear whether I should delete the zone and create it again. Has anyone gone through this situation ?.


回答1:


The zone was already deleted, you should ask the user if he want to recreate the database (if is possible) or stop using CloudKit. If your app required CK, then you should ask the user to don't do it again.



来源:https://stackoverflow.com/questions/33287815/cloudkit-zone-was-purged-by-the-user

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