Hi,
In iOS 14.7.1 (testing on iPhone 6S) doing this:
AVAudioSession.sharedInstance().setCategory(.playAndRecord, mode:AVAudioSession.Mode.default, options: [.mixWithOthers, .defaultToSpeaker])
outputs the audio on speaker even if I have a Bluetooth headset connected.
In iOS 15.6 (testing on iPhone 11) audio is always output to Bluetooth even if .allowBluetooth is not set in setCategory.
Is this an intended change in iOS15 or a bug? I have tried overrideOutputAudioPort(.speaker) as well in iOS15 but it does not make a difference, audio is always output over Bluetooth when connected.
Thanks in advance