I'm experiencing an issue with microphone recording in my app when launched from a Shortcut. The app works correctly when launched directly, but launching it through the Shortcut results in the "Session activation failed" error (code 561015905).
Here's what I've done so far:
My app has microphone permission granted.
The startRecording function sets the audio session category to .playAndRecord.
I've implemented error handling within startRecording to catch the error code.
The Shortcut workflow includes an action to launch the app (no explicit microphone permission request within the Shortcut).
xcode version - 15.2
iphone ios version - 17.4.1