Is it possible to run a task periodically in Background - iOS 4

前端 未结 1 1742
清酒与你
清酒与你 2021-01-07 13:02

I want to poll the location from GPS in the background. So we used a NSTimer and performed periodic checks in the timer tick. In other words, can we schedule NSTimer while t

相关标签:
1条回答
  • 2021-01-07 13:18

    You can't periodically execute arbitrary code, but you can get pinged on significant location changes via startMonitoringSignificantLocationChanges in CLLocationManager.

    0 讨论(0)
提交回复
热议问题