ios位置背景模式:只更新位置达18分钟 [英] ios Location Background Mode : Update location upto 18 mins only
问题描述
我已启用位置背景模式,并添加了 NSLocationAlwaysUsageDescription
。
$ b 拨打
[locationManger startUpdatingLocation];
将应用程序置于后台(通过点击home按钮)后,我可以看到位置服务指示符添加到状态栏。
大约18分钟后,位置服务指示器消失,应用程序无法获得任何gps点数。
注意: requestAlwaysAuthorization
你好Vinay:应用程序将暂停模式,这就是为什么你18分钟后不会得到位置。请检查下面的URL。它会帮助你获得超过18分钟的位置。即使应用程序处于暂停模式。
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.
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.
这篇关于ios位置背景模式:只更新位置达18分钟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!