i'm looking for something similar to setIdleTimer but as a .plist value. I just want to keep my app active even if the user is not using it for a while. Any suggestions?
Thanks
i'm looking for something similar to setIdleTimer but as a .plist value. I just want to keep my app active even if the user is not using it for a while. Any suggestions?
Thanks
As far as I know the only way to keep your app active is by setting
@property(nonatomic,getter=isIdleTimerDisabled) BOOL idleTimerDisabled; // default is NO
for UIApplication
, that is
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
If you want to set a different time you can do an hack by keeping the app active, running your own timer and dimming the screen when needed, but I am not sure it is worth the effort.