I am playing audio using category AVAudioSessionCategorySoloAmbient in order to play some alerts that I don't to be played when the silent switch is on.
However I would like when the silent switch is not activated , that the audio is played on device and not on the bluetooth device that may be connected.
) With AVAudioSessionCategorySoloAmbient, it is not possible to override audio output to speaker (AVAudioSessionPortOverrideSpeaker) or set default mode to speaker.
It is possible to choose the output route and follow the silent switch ?