I have got NSTimer in my app checking in the background if it's needed to post a local notification, and it works pretty fine, but only for some minutes after entering the background mode. How can i make that NSTimer work all the time app is in the background?
[[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:nil];
[[NSRunLoop mainRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes];