Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running IPhone apps while in sleep mode

Tags:

As of IPhone OS 3.0, MotionX GPS is able to keep recording a GPS track while in sleep mode. After you push the sleep button on top of the phone, the app continues receiving GPS coordinates and recording them. Does anyone know how they're able to do this? I'm only aware of the method to keep running audio while in sleep mode.

like image 870
smokey_the_bear Avatar asked Oct 11 '09 20:10

smokey_the_bear


People also ask

What happens when iPhone is on sleep mode?

Sleep Focus filters out notifications and phone calls, and it signals to others that you're not available. Your Sleep Focus begins at the bedtime you schedule in the Health app , but you can schedule your Sleep Focus to begin earlier by setting a wind down period before bedtime.

How do I keep my iPhone apps from sleeping?

When most apps have no touches as user input for a short period, the system puts the device into a "sleep” state where the screen dims. This is done for the purposes of conserving power. Preventing iOS Device from going to sleep is easy, navigate to your Settings → Display & Brightness → Autolock, select never.

Do apps still download in sleep mode iPhone?

Experimented with this again today and it looks like apps do indeed continue to download if you put the phone into sleep mode.


2 Answers

I found a great webpage that explains how to do it -

Cached link from Wayback machine

Original Link, now 404

You have to start a timer that plays a sound every 10 seconds. But the sound can be silent.

like image 71
smokey_the_bear Avatar answered Oct 14 '22 11:10

smokey_the_bear


[UIApplication sharedApplication].idleTimerDisabled=YES should do it

like image 44
Philippe Girolami Avatar answered Oct 14 '22 11:10

Philippe Girolami