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
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值