eyalw
eyalw

Reputation: 740

On iOS, can one run a background app that periodically samples the gps every 2 minutes?

Can I have my app, when open in background, not focused, sample the GPS periodically, say every 1 minute?

is that the same as what GPS navigators do?

Upvotes: 0

Views: 1865

Answers (1)

Krishna
Krishna

Reputation: 1871

iOS provides notification on location change to the apps that are registered for the notification. I think this is the one you are looking for. Have a look at "Tracking the User’s Location" section in http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/BackgroundExecution/BackgroundExecution.html

Upvotes: 1

Related Questions