iOS AppStore 审核驳回 关于 UIBackgroundModes 定位问题

来源:互联网 发布:西昊电脑椅 知乎 编辑:程序博客网 时间:2024/06/08 10:28

我们在提交AppStore是驳回信息 会收到下面的邮件,


发件人 Apple

2. 5 Performance: Software Requirements
Guideline 2.5.4 - Performance - Software Requirements

Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location. Apps that declare support for location in the UIBackgroundModes key in your Info.plist file must have features that require persistent location.

Next Steps

To resolve this issue, please revise your app to include features that require the persistent use of real-time location updates while the app is in the background.

If your app does not require persistent real-time location updates, please remove the "location" setting from the UIBackgroundModes key. You may wish to use the significant-change location service or the region monitoring location service if persistent real-time location updates are not required for your app features.

Resources

For more information, please review the Starting the Significant-Change Location Service and Monitoring Geographical Regions.

Request a phone call from App Review

At your request, we can arrange for an Apple Representative to call you within the next three business days to discuss your App Review issue.

To request a call and ensure we have accurate contact information, reply directly to this message with a contact name and direct phone number to reach you.

翻译过来:

发件人苹果
2。5性能:软件要求
指南2.5.4 -性能-软件要求
你的应用程序声明支持位置在uibackgroundmodes关键在Info.plist文件但没有任何特点,需要持久的位置。应用程序声明支持位置在uibackgroundmodes关键在Info.plist文件必须需要持久的位置特征。
接下来的步骤
为了解决这个问题,请修改您的应用程序,包括功能,需要持续使用实时位置更新,而应用程序是在后台。
如果你的应用程序不需要持续的实时位置更新,请清除“位置”从uibackgroundmodes键设置。如果您的应用程序功能不需要持续的实时位置更新,您可能希望使用“显著更改位置服务”或“区域监视定位服务”。
资源
欲了解更多信息,请审查启动的显著变化位置服务和监测地理区域。
请求从应用程序审查的电话
根据您的要求,我们可以安排苹果代表在未来三个工作日内给您打电话,讨论您的应用程序审查问题。
要求来电,并确保我们有准确的联系方式,直接回复此邮件的联系人姓名和直接电话号码,以达到您。


意思就是说,你的手机在后台也在时时的获取用户的位置。但是你的App并没有需要这个。

所以我就只要去掉这的uibackgroundmodes 中关于定位的就可以了。

如果需要我们可以去掉这个uibackgroundmodes 直接粘贴下面两个Key 就可以实现定位。只不过形式不一样

添加下面两个字段:key:Privacy - Location When In Use Usage Description      value:字符串就可以。例如:我们需要通过您的地理位置信息获取您周边的相关数据

               key:Privacy - Location Always Usage Description        后面为字符串类型(随意填写)例如:请您允许,我们将会为您提供更精确的信息 // 特别声明一下,这个字段的添加要看你的需求,这个功能是指在后台时也可以时时定位,所以app如果不需要的话,不建议添加,否则上线审核会出现问题,如果需要需要做一些声明描述:GPS在后台持续运行,可以大大降低电池的寿命。

原创粉丝点击