3

I am creating an iPhone app,in which AI have to update the location during significant change.For that I have used "[locationManager startMonitoringSignificantLocationChanges]". I have to update the location during the app is in background also.So I have given Required background Modes as "App registers for location update" in the info.plist . My doubt is: Is that necessary to give it in info.plist for background registration, when using startMonitoringSignificantLocationChanges?

If any body has idea then please help me... Thanks in advance

Anand
  • 254
  • 2
  • 12
  • See also [this answer](http://stackoverflow.com/a/5414819/1693173) if you need more processing time while in the background. – progrmr Jan 24 '13 at 15:59

1 Answers1

2

The significant location changes will automatically start your app in the background without the required background modes key. Required background modes is only needed if you're continuously monitoring location like a street navigation turn by turn app.

EDIT: this is covered in the Location Awareness Programming Guide, it is worth reading:

The preferred option is to use the significant location change service to wake your app at appropriate times to handle new events. However, if your app needs to use the standard location service, you can declare your app as needing background location services.

So if you are using significant location change service, it will be woken up and you don't need the background modes key. If you are using standard location service and must run in the background then you need the background modes key "location".

progrmr
  • 75,956
  • 16
  • 112
  • 147