0

I have read a number of posts here that it is possible to get location updates while the application is in the background.

My question is what to what extent can I do computing in the background and would I handle it as I would any other code, i.e. just a method call, etc.

Thanks a lot.

John Lane
  • 1,112
  • 1
  • 14
  • 32

2 Answers2

0

It is possible, yes. You set the 'location' UIBackgroundModes flag in your Info.plist and then call the Location Manager.

See App States and Multitasking

You can do computing while your application is running in the background, although you run the risk of running down the device battery. It's better to just respond to location events.

EricS
  • 9,650
  • 2
  • 38
  • 34
0

The Apple documentation is pretty clear about what your app can do while in the background. You cannot do whatever you want while your app is in the background -- there are only a few things you can do (i.e. play audio, track a users location, etc).

Check out Background Execution and Multitasking.

Michael Frederick
  • 16,664
  • 3
  • 43
  • 58
  • Thanks. Does significant location changes help? – John Lane May 11 '12 at 21:15
  • You should really avoid tracking a users location in the background unless the functionality of your app really requires it. Apps that use the GPS in the background seriously drain the battery. – Michael Frederick May 11 '12 at 21:29