Possible to prevent iPhone from going to sleep?

Discussion in 'iPhone/iPad Programming' started by imrtt, Jul 21, 2008.

  1. macrumors newbie

    Joined:
    Jul 19, 2008
    #1
    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. macrumors regular

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

    Joined:
    Jul 30, 2008
    #3
    Hi,

    Look for [UIApplication idleTimerDisabled]
     

Share This Page