I did an SwiftUI app where I use AudioSession, AVAudioPlayer and CallKit. I want to play small sounds when pressing a button during the active call, but apparently it is not possible on iOS 17. This was working on previous iOS versions. I tried already all the different audio session categories and modes and nothing seems to work. I tried to find for change logs or relevant docs / issues talking about this but I was unable to find any reference.
- Expected: Init call, play sound, hear sound.
- Actual: Init call, play sound, don't hear nothing.
Without the active call, I can hear the song.
Am I doing or understanding something wrong? What could possibly be happening? Thank you and appreciate if someone can provide an insight on this!