Mahadevan Sreenivasan
Mahadevan Sreenivasan

Reputation: 1132

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

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

Upvotes: 0

Views: 1101

Answers (1)

Joost Schuur
Joost Schuur

Reputation: 4482

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

Upvotes: 3

Related Questions