【发布时间】:2015-01-30 13:39:32
【问题描述】:
我正在使用Selene 来安排后台获取任务。
在获取任务期间,我在 CLLocationManager 实例上调用 requestAlwaysAuthorization 和 startUpdatingLocation。抓取任务启动时,状态栏可以看到定位服务开启,但没有调用回调locationManager:didUpdateLocations:。
我已将所需的后台模式设置为 fetch 和 location,并在 plist 文件中有 NSLocationAlwaysUsageDescription。
在后台获取任务中执行的代码在其他地方工作,并且在不在后台任务中时接收位置更新。
【问题讨论】:
标签: ios background location fetch