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?