János
János

Reputation: 35050

iOS background mode when app is not running?

Is background mode for receiving location updates available when app was closed? Is it any way to collect and share location data like Friends app? It shares location always, also when does not runs.

Upvotes: 0

Views: 371

Answers (1)

elfanek
elfanek

Reputation: 142

If your app must keep monitoring location even while it’s in the background, use the standard location service and specify the location value of the UIBackgroundModes key to continue running in the background and receiving location updates. (In this situation, you should also make sure the location manager’s pausesLocationUpdatesAutomatically property is set to YES to help conserve power.)

If GPS-level accuracy isn’t critical for your app and you don’t need continuous tracking, you can use the significant-change location service. It’s crucial that you use the significant-change location service correctly, because these updates run continuously, around the clock, until you stop them, and can actually result in higher energy use if not employed effectively.

Check out the Location and Maps Programming Guide for more information.

Upvotes: 1

Related Questions