Guideline 2.5.4 - Performance - Software Requirements关于UIBackgroundModes被拒问题
记一次审核被拒的过程
被拒内容如下:
2021年8月27日 上午8:36
发件人 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.
大致意思:您的应用程序声明支持Info.plist文件中UIBackgroundModes键中的位置,但没有任何需要持久位置的功能。在Info.plist文件的UIBackgroundModes键中声明支持位置的应用程序必须具有需要持久位置的功能。
使用location updates
如果确定使用location updates的话,描述为什么使用,那个场景使用。来进行申诉。
不使用location updates解决方案一:没有使用百度地图
1、勾掉location updates

或者在info.plist文件,UIBackgroundModes键中删除“location”设置。
2、删除后台定位代码 不然会引起崩溃
if #available(iOS 9.0, *

这篇博客讲述了开发者遇到的一个iOS应用审核被拒的问题,原因是应用声明了支持后台定位但未实际使用。苹果要求要么实现需要后台定位的功能,要么移除相关设置。解决方案包括移除location updates设置、使用前台定位或通过代码hook避免在不需要时开启后台定位。

837

被折叠的 条评论
为什么被折叠?



