Push To Talk System UI doesn't activate audio session

So I have been able to get my app to record and receive PTT on the foreground successfully but when pressed the talk button in the system UI or when my app is in the background, the audio session is never activated hence func channelManager(_ channelManager: PTChannelManager, didDeactivate audioSession: AVAudioSession) never get called.

My question is, is there any step or requirement that might prevent the system UI from activating the audio session even though the same code works perfectly fine whenever the app is in the foreground. I appreciate your help in advance.

Replies

I found a solution here in case anyone faces this same issue. Thread. I will suggest apple improve the documentation to add those modes and the audio session configurations to spare hours of trying to figure out why transmitting from the system ui doesn't activate the audio session