Possible to prevent iPhone from going to sleep?

Discussion in 'iOS Programming' started by imrtt, Jul 21, 2008.

  1. imrtt macrumors newbie

    Jul 19, 2008
    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.
  2. white89gt macrumors regular

    Jan 18, 2006
    It's probably easier to suggest to your users to turn auto lock off in the settings.
  3. freis macrumors newbie

    Jul 30, 2008

    Look for [UIApplication idleTimerDisabled]

Share This Page