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
發佈了40 篇原創文章 · 獲贊 11 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章