2

I just wanted to know what happens, when i select app registers for location updates under "Required background modes" in Xcode for an IOS app. VOIP provides aliveTimeOutHandler for specific duration. In same way, whether location services provides any aliveTimeOutHandler method? I am using IOS7

rmaddy
  • 314,917
  • 42
  • 532
  • 579
user2533604
  • 655
  • 1
  • 11
  • 28

1 Answers1

3

When your app registers for location updates it will periodically check for location changes when in the background. Of course this is just a switch in project settings that enables that bground mode for your app. You need to actually implement the background task (write some code). You can see the accepted answer here on how to achieve this.

Community
  • 1
  • 1
Nikos M.
  • 13,685
  • 4
  • 47
  • 61
  • Do you know how long app will check in background for location changes? – user2533604 Nov 18 '13 at 12:11
  • if you set pausesLocationUpdatesAutomatically = NO (default is YES) it will keep updating while the app is in the background. Otherwise it will stop updating after about 15 mins in the same location. – Nikos M. Nov 18 '13 at 12:16