Screen recording with microphone mutes app audio

I'm having some trouble with screen recording on iPhone devices. When a user starts screen recording, whether using iPhone's built-in recording or an external app, AND enables microphone recording, the audio in-game suddenly cuts. When they stop recording from the microphone, audio starts back in again. I've confirmed that this issue doesn't occur for other apps on the device.

I'm assuming this is some security policy, but I can't find the setting for it anywhere. I've tried every combination of AVAudioSessionCategory and AVAudioSessionCategoryOption, but none of them seem to change anything. I feel like this should be an option in info.plist, but I can't find one regarding microphones or screen recording other than just requesting permission to record from within the app, which is not what I'm trying to do.

Does anyone know how to solve this?

It's also probably important to note that this is not an issue with Android devices, which record internal audio and microphone at the same time just fine.

Also probably important to note that this is NOT an issue on Android devices, screen recording internally or with an app on Android works just fine with microphone.

Accepted Answer

For anyone curious, I did find the solution to this issue: It seems that using AudioSettings.Reset(config); in Unity can cause all audio to drop, at least on iOS. I was resetting the dsp buffer at the start of every scene, removing this fixed the issue.

Screen recording with microphone mutes app audio
 
 
Q