to run app continuously in the background
I want to my app to keep running in the background with location services. For this I have used: -(void)applicationDidEnterBackground:(UIApplication *)application { [locationManager stopUpdatingLocation]; [locationManager startUpdatingLocation]; //timer=[NSTimer scheduledTimerWithTimeInterval:300 target:self selector:@selector(UpdateLocation) userInfo:nil repeats:YES]; } but when I use NSTimer it does not call UpdateLocation . I tried calling it using another method but then it also called only once. I want to run the app continuously in the background, detecting locations after regular