Post

Replies

Boosts

Views

Activity

AudioRecordingIntent: AVAudioSession.setActive() fails with OSStatus 561015905 on Lock Screen
Hello, I'm implementing AudioRecordingIntent on iOS 26. My goal is to support Action Button exactly like Apple's Voice Memos: • press Action Button • device remains locked • recording starts immediately • no Face ID • Live Activity is shown • no application UI My intent conforms to AudioRecordingIntent. Inside perform() I do: AVAudioSession.sharedInstance().setCategory(.record) AVAudioSession.sharedInstance().setActive(true) AVAudioRecorder.record() The result is: setCategory succeeds. setActive always fails with NSOSStatusErrorDomain Code = 561015905 "Session activation failed" The failure happens before AVAudioRecorder starts. If I instead forward execution to the main application, iOS requests Face ID before recording begins. Questions: Is AVAudioSession activation inside AudioRecordingIntent actually supported for third-party apps? If not, what is the expected architecture for implementing lock-screen recording using AudioRecordingIntent? Is there an official sample project demonstrating the intended implementation? Thank you.
0
0
396
4w
AudioRecordingIntent: AVAudioSession.setActive() fails with OSStatus 561015905 on Lock Screen
Hello, I'm implementing AudioRecordingIntent on iOS 26. My goal is to support Action Button exactly like Apple's Voice Memos: • press Action Button • device remains locked • recording starts immediately • no Face ID • Live Activity is shown • no application UI My intent conforms to AudioRecordingIntent. Inside perform() I do: AVAudioSession.sharedInstance().setCategory(.record) AVAudioSession.sharedInstance().setActive(true) AVAudioRecorder.record() The result is: setCategory succeeds. setActive always fails with NSOSStatusErrorDomain Code = 561015905 "Session activation failed" The failure happens before AVAudioRecorder starts. If I instead forward execution to the main application, iOS requests Face ID before recording begins. Questions: Is AVAudioSession activation inside AudioRecordingIntent actually supported for third-party apps? If not, what is the expected architecture for implementing lock-screen recording using AudioRecordingIntent? Is there an official sample project demonstrating the intended implementation? Thank you.
Replies
0
Boosts
0
Views
396
Activity
4w