Hi
I want to run my app 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 user timer,it does not call UpdateLocation. I called it using another method but then also it is called only once.
I want to run app continously in the background, detecting locations after regular interval of time.
Can any one please suggest any idea?
thanks in advance