My project is using a CLLocationManager object, receiving updates via: locationManager:didUpdateToLocations:
I want these updates even though my app is in the background. So in info.plist i have set the, "Required background modes" list to App registers for location updates.
But my testing shows that it does not receive the updates in background state.
However, i'm not sure i'm having the correct perception of background state/ suspended state. This is how i think it works:
After the home button is pressed, the app enters background mode for 5 seconds,
and then enter suspended state.
I guess this is why it's not working. But if setting the info.plist to ""app registers for location updates" does not keep the app from reaching suspended state, then how do i achieve it?
What is the difference (if any) in pressing the Home button and pressing the lock button? State-wise i mean.
I have read the relevant parts of this guide: http://www.raywenderlich.com/29948/backgrounding-for-ios
Im still new to IOS, so i might have overlooked something.