美文网首页锻炼吃饭的家伙iOS 实用iOS开发杂货铺
iOS后台定位被拒问题的解决方法

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

作者: 繁华乱世沧桑了谁的容颜 | 来源:发表于2016-11-11 10:12 被阅读4783次

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

相关文章

网友评论

  • brance:楼主你好,向你请教一个问题,我的app里info.list 中持续定位的描述为:App需要您的同意,根据您的位置获取周边订单信息。
    我在APP描述里也写了
    温馨提示】
    该产品在使用过程中为了获取周边订单信息会持续使用GPS定位服务,切换至后台时,仍会保持GPS连接,相比其他操作会消耗更多电量,并影响电池续航时间。
    这样子做应该不会被拒吧?
  • 梁森的简书:我的App只是显示了一个坐标点(后台传过来的)在地图上的位置,是不就不用在info.plist文件中设置那句话了?
    繁华乱世沧桑了谁的容颜:@阳光黑 不需要 只要不是一直后台定位就不需要这句话
  • 科了个技:楼主你好,我想问下如果是音频后台播放,审核被拒应该怎么处理可以通过苹果审核,我这里开启音频后台播放主要是为了流媒体视频的下载可以后台继续下载
    繁华乱世沧桑了谁的容颜:@科了个技 后台下载本来就支持吧? 你可以当断开的时候用本地推送唤醒
  • 不如吃酒去:楼主我想知道,你的审核通过了吗
    不如吃酒去:@繁华乱世沧桑了谁的容颜
    这是被拒绝的原因 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 app 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.

    繁华乱世沧桑了谁的容颜:@这样拉轰的蓝人 你的没通过吗?拒绝原因是什么?
    繁华乱世沧桑了谁的容颜:@这样拉轰的蓝人 通过了
  • f99be83ff259:我写了 但是还是被拒了
    繁华乱世沧桑了谁的容颜:@f99be83ff259 你看看你的plist里面配置了没有 另外 你仔细看看是不是配置错了

本文标题:iOS后台定位被拒问题的解决方法

本文链接:https://www.haomeiwen.com/subject/ytqfpttx.html