ios Location Background Mode : Update location upto 18 mins only

陌路散爱 提交于 2019-12-13 07:15:08

问题


I have enabled Location background mode and added NSLocationAlwaysUsageDescription.

After calling

[locationManger startUpdatingLocation];

After placing the application in background (by tapping home button), i can see location-services indicator been added to status bar. After around 18 mins, the location-services indicator went away and app doesn't get any gps points.

NOTE: requestAlwaysAuthorization is in place and granted.


回答1:


Hi Vinay: App will move on suspended mode that's why you'll not get the location after 18 min. Please check below URL. it'll help you to get location more then 18 min. even app is in suspended mode.

Go to this link



来源:https://stackoverflow.com/questions/40548560/ios-location-background-mode-update-location-upto-18-mins-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!