IOS 15.5 silent switch issue

Hi, I’ve had some feedback that some of the apps that I manage no longer play audio if the audio switch is down on an IOS device. I’ve not had any issues like this for a good few years and have managed to get around this issue by using the following Objective C:

AVAudioSession *audioSession = [AVAudioSession sharedInstance];
[audioSession setCategory:AVAudioSessionCategoryPlayback error:nil];
[audioSession setActive:YES error:nil];

For some reason with IOS 15.5 this no longer works. Does anyone know if there is a new work around to override the silent switch?

I’ve now managed to fix the issue by creating a plugin to extend the UnityAppController. Im not really sure why the above has stopped working as the new implementation is exactly the same.

I’ve run into the same issue, with very similar code to your example. The silent switch now mutes my app. Would you be willing to share your fix here? Much appreciated.

Edit: I’m on 15.6.1. The issue seems to effect new builds only, builds made for earlier versions of iOS still work as expected, even when running on 15.6.1.

Seems to me like a bug. Could you report it?