Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found the answer already on SO in <a href="https://stackoverflow.com/questions/1749550/sound-and-nstimer-stopped-when-iphone-is-in-deepsleepmode">this thread here</a> and also in <a href="https://stackoverflow.com/questions/1551712/running-iphone-apps-while-in-sleep-mode">this thread on SO</a>.</p> <p>What's happening is that the iPhone goes into deep sleep mode after 10 minutes (after the screen is locked) where it stops your NSTimer's and goes into lower power mode. Even when you have the category set to MediaPlayback it will do this unless you are actually playing a sound. The solution given is to play a "silent" sound file periodically to prevent it from going into deep sleep mode.</p> <p>Here's what I see in the console log at the time deep sleep occurs (the Warnings are from my clock app):</p> <pre><code>Thu Dec 24 09:25:09 unknown Clock[16346] &lt;Warning&gt;: ClockDigital itemInterval=0 curInterval=0 needsUpdate=YES Thu Dec 24 09:25:09 unknown Clock[16346] &lt;Warning&gt;: BatteryIcon itemInterval=6 curInterval=0 needsUpdate=NO Thu Dec 24 09:25:09 unknown CommCenter[28] &lt;Notice&gt;: Telling CSI to go low power. Thu Dec 24 09:25:09 unknown CommCenter[28] &lt;Notice&gt;: CSI can enter low power, so now telling to do so. Thu Dec 24 09:25:09 unknown CommCenter[28] &lt;Notice&gt;: Will sleep. Heard from CSI in 0.00501698 seconds Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleSynopsysOTGCore::sleepWakeNotification: Sysmtem Going to sleep Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AirPort: Disabled AppleBCMWLAN (link 2, sys 1, user 1) Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN::setPOWER() [kernel_task]: Setting power state to 0 Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleMultitouchN1SPI: disabled power Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN Left BSS: @ 0xcf3cc800, BSSID = 00:0f:a3:1c:9f:0c, rssi = -53, rate = 54 (100%), channel = 7, encryption = 0x2, ap = 1, failures = 0, age = 26, ssid[ 8] = "mggm.ap1" Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AirPort: Link Down on en0 Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN::powerOff Ready to power off Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN::setPowerStateGated() : Powering Off and sleeping Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN::powerOff Ready to power off Thu Dec 24 09:25:10 unknown configd[22] &lt;Error&gt;: WiFi:[283368310.000857]: Unable to dispatch message to client dataaccessd (0x10000004) Thu Dec 24 09:25:10 unknown configd[22] &lt;Error&gt;: WiFi:[283368310.013365]: Unable to dispatch message to client apsd (0x10000004) Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: ClockVC: adjusted interval: 0.993291 Thu Dec 24 09:25:10 unknown configd[22] &lt;Error&gt;: WiFi:[283368310.018146]: Error initiating scan request: 82 Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: AppleBCMWLAN::setPOWER(): IOKit power off. Discarding request. Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: CalendarDay itemInterval=5 curInterval=0 needsUpdate=NO Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: BatteryState itemInterval=6 curInterval=0 needsUpdate=NO Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: MindfulnessBell itemInterval=2 curInterval=0 needsUpdate=NO Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: ClockDigital itemInterval=0 curInterval=0 needsUpdate=YES Thu Dec 24 09:25:10 unknown Clock[16346] &lt;Warning&gt;: BatteryIcon itemInterval=6 curInterval=0 needsUpdate=NO Thu Dec 24 09:25:10 unknown kernel[0] &lt;Debug&gt;: System Sleep </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload