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]
2.1m questions
2.1m answers
60 comments
57.0k users