iOS后台定位被拒问题的解决方法

Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not declare 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.
Please revise your app to include features that require the persistent use of real-time location updates while the app is in the background. Please also add the following battery use disclaimer in your Application Description:
"Continued use of GPS running in the background can dramatically decrease battery life."

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.
信息大概是这样的, 当遇到这个原因的时候不要慌 参考百度地图 高德地图这种设置就行了
iOS后台定位被拒问题的解决方法
需要在plist里面Privacy - Location Always Usage Description 后面写明你要后台定位的原因,这时候在APP第一次启动的时候就会弹框上面多了一行字 如图


003nsTb1zy75vKa5eM7d7&690.png

这个时候再次启动APP的时候 在获取权限的弹框里会多出几个字


003nsTb1zy75vKhEbVL79&690.png


然后再AppStore上传时有一个应用描述,在最后加一个类似免责声明的东西:

*长时间使用GPS在后台运行可能显著减少电池寿命. 这个句话很重要,要不然会被拒绝 这个参考百度地图吧


003nsTb1zy75vK3ixEV8d&690.png

你可能感兴趣的:(iOS审核相关)