0

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 the app is in Background?

Thanks in advance

Joost Schuur
  • 4,417
  • 2
  • 24
  • 39
Mahadevan Sreenivasan
  • 1,144
  • 1
  • 9
  • 26

1 Answers1

3

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

Joost Schuur
  • 4,417
  • 2
  • 24
  • 39