被拒原因:
2. 5 Performance: Software Requirements
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 theStarting the Significant-Change Location ServiceandMonitoring Geographical Regions.
翻译:
您的应用程序在Info.plist文件的UIBackgroundModes键中声明了对位置的支持,但没有任何需要持久位置的功能。声明支持Info.plist文件中UIBackgroundModes键位置的应用程序必须具有需要持久位置的功能。后续步骤若要解决此问题,请修改您的应用程序,以包含需要在应用程序处于后台时持续使用实时位置更新的功能。如果您的应用不需要持久的实时位置更新,请从UIBackgroundModes键中删除“location”设置。如果您的应用功能不需要持久的实时位置更新,您可能希望使用重要更改位置服务或区域监控位置服务。
有关更多信息,请查看启动重要更改位置服务和监控地理区域。
解释:
应用.plist设置位置权限时,苹果的人认为你的APP不需要持续定位,所以不需要开启持久定位功能.
NSLocationUsageDescription//持续定位
NSLocationWhenInUseUsageDescription普通定位
NSMicrophoneUsageDescription//使用期间定位
所以只需要把持续定位的配置删掉就可以了.
网友评论