appiOS程序猿

上架被拒总结一之info.plist 定位参数配置

2017-04-08  本文已影响0人  等风来我就起飞

Guideline 2.5.4 - Performance(问题一)

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.(意思是:你使用了时时定位(后台定位模式),但是在info.plist中没有特征描述关于你使用了持久定位功能,app是一定要有这个特征说明的)

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.(去解决这个问题,请修改这个当你的app在后台的时候需要使用不停使用时时定位这个功能的特征描述。

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.(意思:叫你删掉这个功能)

如果你一定要用的话:当你开启进入后台时还一直开启定位将会造成电池损害,如果你一定开启始终定位,你可以通过和录视频告诉苹果测试人员为什么要app进入后台定位。或者请添加以下应用程序中使用的免责声明描述电池:“GPS在后台持续运行,可以大大降低电池的寿命。”

这个添加免责申明,应该可以,具体怎么加info.plist中肯定要说明。。 我是直接删除这个功能的,如果想尝试请打开链接blog.csdn.net/djl4104804/article/details/50778700

Guideline 5.1.5 - Legal (问题二)

Your app uses background location services but does not clarify the purpose of its use in the location modal alert as required in theiOS Human Interface Guidelines.

Please see attached screenshots for details.

Next Steps

To resolve this issue, please revise the NSLocationAlwaysUsageDescription value in the Info.plist to specify the intended purpose of using the user's location while the app is in the background.

Resources

For additional information and instructions on configuring and presenting an alert, please review theRequesting Permissionsection of the iOS Human Interface Guidelines and theInformation Property List Key Reference.

分析:你的app使用了NSLocationAlwaysUsageDescription(时时定位,包括在后台时),基本上没有要这个时时定位功能,就不要用  一般用NSLocationWhenInUseUsageDescription(使用时定位就可以了)当然你如果用了,就要说明清楚你为什么要用  

来说一下定位配置吧:

NSLocationAlwaysUsageDescription      //后台定位耗电    App需要您的同意,才能始终访问位置

NSLocationUsageDescription        App需要您的同意,才能访问位置

NSLocationWhenInUseUsageDescription     App需要您的同意,才能在使用期间访问位置            

第一个能不能就不用吧,如果想用定位  下面两个是一定要配置的

一些常用配置链接blog.csdn.net/yangxlan/article/details/54023151

上一篇 下一篇

猜你喜欢

热点阅读