即使应用程序在iOS中终止,也会持续更新位置
任何人都可以帮助我获取设备的位置,即使应用程序终止。 我知道如何获得应用程序在后台的位置。 但是,当用户closures/终止应用程序时,我仍然无法获得它。
谢谢,尼莱什
请参考http://mobileoop.com/getting-location-updates-for-ios-7-and-8-when-the-app-is-killedterminatedsuspended我还没有testing过。 但是你可以试一试。
请参阅这些页面。 它可以使用
[[LocationController sharedInstance] startMonitoringSignificantLocationChanges];
1) 在应用程序终止后接收位置更新
2.) 甚至当应用终止时,iOS更新位置
一旦应用程序从后台终止,无法连续检索位置。
- 为什么CLLocationManager总是返回true?
- 不在背景上调用CLLocationManager委托方法
- iOS从后台重新检查加载位置
- didFailWithError:错误域= kCLErrorDomain代码= 0“操作无法完成。 (kCLErrorDomain错误0.)“
- 'CLLocationManager'没有可见的@interface声明select器'requestAlwaysAuthorization'
- IOS didUpdateLocations称为多时间
- iOS更新位置,即使应用程序终止
- iOS:应用程序在安装应用程序时不会询问用户的权限。 每次都得到kCLAuthorizationStatusNotDetermined – Objective-c&Swift
- 我怎样才能继续更新我的位置,即使应用程序被杀死或从背景中删除ios?