ios Location Background Mode : Update location upt

2019-09-15 09:10发布

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条回答
等我变得足够好
2楼-- · 2019-09-15 09:24

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

查看更多
登录 后发表回答