I want to check if the app is running in the background.
In:
locationManagerDidUpdateLocation {
if(app is runing in background){
do this
If you prefer to receive callbacks instead of "ask" about the application state, use these two methods in your AppDelegate:
- (void)applicationDidBecomeActive:(UIApplication *)application {
NSLog(@"app is actvie now");
}
- (void)applicationWillResignActive:(UIApplication *)application {
NSLog(@"app is not actvie now");
}