Your app declares support for location in the UIBackgroundModes key in your Info.plist file but does

原文:

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.

 

翻译过来:

你的应用程序在你的UIBackgroundModes键中声明了对位置的支持信息列表但没有任何需要持久位置的功能。在UIBackgroundModes中声明支持位置的应用程序在信息列表文件必须具有需要持久位置的功能。

下一步

若要解决此问题,请修改您的应用程序,使其包含需要在应用程序处于后台时持续使用实时位置更新的功能。

如果您的应用不需要持久的实时位置更新,请从UIBackgroundModes键中删除“位置”设置。如果应用程序功能不需要持久的实时位置更新,您可能希望使用“重大更改位置”服务或“区域监视位置”服务。

 

大意就是:

我用了UIBackgroundModes键中声明了对微信的支持信息列表,但是他们没有检测到我的程序使用该功能,要求我更改应用程序

如果没有使用,按他的说明删除即可,即在info.plist文件中删除如下设置

这个设置就是在后台运行app的时候,依然实时请求定位信息

如果想要使用该功能,我们可以去掉这个uibackgroundmodes 直接粘贴下面两个Key 就可以实现定位,只不过形式不一样

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值