Hi I have an app that reads data from the accelerometer. However after the screen gets locked this not possible.
I have tried the following
-(void)startMonitoring{
UIApplication *thisApp = [UIApplication sharedApplication];
thisApp.idleTimerDisabled = YES;
....
....
}
-(void)stopMonitoring{
UIApplication *thisApp = [UIApplication sharedApplication];
thisApp.idleTimerDisabled = NO;
....
....
}
How can I keep reading from the accelerometer even after the screen gets locked.