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.
信息大概是這樣的, 當(dāng)遇到這個原因的時候不要慌 參考百度地圖 高德地圖這種設(shè)置就行了
iOS后臺定位被拒問題的解決方法
需要在plist里面Privacy - Location Always Usage Description 后面寫明你要后臺定位的原因,這時候在APP第一次啟動的時候就會彈框上面多了一行字 如圖
這個時候再次啟動APP的時候 在獲取權(quán)限的彈框里會多出幾個字
然后再AppStore上傳時有一個應(yīng)用描述,在最后加一個類似免責(zé)聲明的東西: