iOS后臺定位被拒問題的解決方法

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
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容