[英]ios Location Background Mode : Update location upto 18 mins only
I have enabled Location background mode and added NSLocationAlwaysUsageDescription
. 我启用了位置后台模式并添加了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. 大约18分钟后,定位服务指示灯消失,应用未获得任何gps积分。
NOTE: requestAlwaysAuthorization
is in place and granted. 注意: requestAlwaysAuthorization
已就位并被授予。
Hi Vinay: App will move on suspended mode that's why you'll not get the location after 18 min. 嗨,Vinay:应用程序将在暂停模式下运行,这就是为什么18分钟后您将无法获得位置信息的原因。 Please check below URL. 请检查以下URL。 it'll help you to get location more then 18 min. 它将帮助您在18分钟以上的时间里获得位置信息。 even app is in suspended mode. 即使应用处于暂停模式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.