Play sounds during an active call on iOS 17

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!

Post not yet marked as solved Up vote post of luisredondo Down vote post of luisredondo
842 views

Replies

Same problem here...

Experiencing a similar issue with AVPlayer

Experiencing same problem on iOS 17, has anyone managed to find a workaround?