I want to check if the app is running in the background.
In:
locationManagerDidUpdateLocation {
if(app is runing in background){
do this
}
}
App delegate gets callbacks indicating state transitions. You can track it based on that.
Also the applicationState property in UIApplication returns the current state.
[[UIApplication sharedApplication] applicationState]