My app records audio overnight in the background: UIBackgroundModes audio, AVAudioSession category playAndRecord with mode measurement, and an AVAudioEngine with a tap on inputNode.
On a customer's iPhone 18 Pro running iOS 27.2.1 (24B156), the tap starts delivering buffers of exact zeros about two hours into the night. It keeps delivering zeros until she picks the phone up in the morning.
Her sysdiagnose shows the same sequence on three consecutive nights:
- powerd logs
SmartPowerNap: enterSmartPowerNap. - The backlight state changes from
inactiveOnLivetosuppressed, with the explanation "alwaysOn suppressed - SmartPowerNap". The panel reaches 0 nits about two seconds later. - Under a second after that, every sample in the recording is 0. PowerLog's per-app mic RMS reads -240 from that point on.
- Hours later powerd logs
Exiting SmartPowerNap. Session end reason MotionDetected. The display wakes and mic input returns within a second.
Timing on the third night:
- 23:55:57.234 Smart Power Nap entry
- 23:55:59.14 panel at 0 nits
- 23:55:59.8 first zero sample in the recording
- 05:46:58.032 Smart Power Nap exit
- about 05:46:59 mic input returns
During the silent hours:
- The app receives no interruption, route change, media services reset or
AVAudioEngineConfigurationChangenotification. - The engine keeps running and the tap keeps firing on schedule.
- audiomxd logs no deactivation for the session and holds its power assertions throughout.
- The system never sleeps.
I can't reproduce it. My iPhone 16 Pro on the same build logs "SmartPowerNap: feature not enabled or predictor not initialized" on every lock, so it never takes this path.
Questions:
- Does iOS gate mic input by design while Smart Power Nap suppresses the Always-On Display?
- Can an app keep recording through it, or get a notification that input has stopped?
- Does restarting
AVAudioEnginewhile the session stays active restore input in this state? I can detect a run of exact zeros and restart the engine, but I have no device to test it on. - Has anyone else with iPhone 18 Pro users seen this?
I filed FB25663635 with the sysdiagnose attached.