应用程序因iCloud备份标记而被拒绝 [英] App Rejected for iCloud Backup Flagging

查看:194
本文介绍了应用程序因iCloud备份标记而被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用有一些应用内购买,可将视频内容下载到/ Documents文件夹。我最近提交了该应用程序的更新并被拒绝,因为我没有将视频文件标记为不备份到iCloud。我成功地实现了标记,但我仍然对Apple文档中的这一陈述感到困惑:

My app has a few in-app purchases that downloads video content to the /Documents folder. I recently submitted an update to the app and was rejected because I did not flag the video files to not be backed up to iCloud. I succesfully implemented the flagging but I am still confused by this statement in Apple's documentation:

重要新的不备份属性仅供iOS 5.0使用。 1或以后。在iOS 5.0及更早版本中,应用程序需要将其数据存储在/ Library / Caches中以避免备份。由于旧系统会忽略此属性,因此您需要确保您的应用符合您的应用支持的所有iOS版本的iOS数据存储指南。

Important The new "do not back up" attribute will only be used by iOS 5.0.1 or later. On iOS 5.0 and earlier, applications will need to store their data in /Library/Caches to avoid having it backed up. Since this attribute is ignored on older systems, you will need to insure your app complies with the iOS Data Storage Guidelines on all versions of iOS that your application supports.

我的应用支持iOS 3.2及更高版本,所以我需要在我的代码中考虑不同版本的iOS,或者实现足够的不备份标志以通过App Store批准吗?我真的不想放弃对5.0.1之前版本的支持。

My app supports iOS 3.2 and later, so do I need to account for different versions of iOS in my code or is implementing the do not backup flag enough to pass for App Store approval? I really don't want to drop support for versions earlier than 5.0.1.

请帮忙!

推荐答案

您的应用的正确行为是将文件放在5.0.1之前的操作系统上的库/缓存中,并放置它在5.0.1或更高版本中带有不备份标志的文档中。使用库/缓存的缺点是当用户升级应用程序时将擦除文件(因此他们最好能够重新下载它们)。但好处是你不会使用不应备份的文件使他们的备份膨胀。

The correct behavior for your app is to place the files in Library/Caches on OSes prior to 5.0.1, and place it into Documents with the "do not backup" flag in 5.0.1 or later. the downside of using Library/Caches is the files will be wiped when the user upgrades the app (so they'd better be able to re-download them). But the upside is you won't be bloating their backups with files that shouldn't be backed up.

请注意,在5.0.1或更高版本中如果检测到文件不存在,你应该在下载之前检查5.0.1之前的位置,以防用户刚刚升级他们的操作系统。

Note that on 5.0.1 or later if you detect that the files aren't there, you should check their pre-5.0.1 location before downloading them, in case the user just upgraded their OS.

这篇关于应用程序因iCloud备份标记而被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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