PDA

View Full Version : Possible to prevent iPhone from going to sleep?




imrtt
Jul 22, 2008, 01:52 AM
I have an app that needs to continuously monitor GPS. However, after about a minute of inactivity, the device goes to sleep and GPS is turned off (to save power, presumably). Is there any way for my application to keep GPS on as long as it's running? Thanks in advance.



white89gt
Jul 22, 2008, 10:46 AM
It's probably easier to suggest to your users to turn auto lock off in the settings.

freis
Jul 30, 2008, 05:26 AM
Hi,

Look for [UIApplication idleTimerDisabled]