老工程添加用户协议和隐私政策后就打包提交了,第二天竟然被拒了,原因如下:
### 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](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW8) and [Monitoring Geographical Regions](https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/RegionMonitoring/RegionMonitoring.html#//apple_ref/doc/uid/TP40009497-CH9-SW1).
我们确实在Background Modes中勾选了location updates,在info.plist中添加了NSLocationAlwaysUsageDescription说明。
但我们实际应用场景中没有使用到长时间定位,这是很早以前开发的为一定能获取到位置添加的配置,没想到这个被拒了,删除这两项也测试过,授权使用app时获取位置,能正常获取到位置,再打包提交,应该能审核通过。
网友评论