Hi, Quinn! Thanks for the reply!
RTCAudioSessionConfiguration *webRTCConfiguration = [RTCAudioSessionConfiguration webRTCConfiguration];
webRTCConfiguration.categoryOptions = (AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionDefaultToSpeaker | AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers);
This piece of AudioSession code and Background Mode [Audio, Airplay, etc & Voice over IP], make things work properly with the push-to-talk call.
We have an old app that does this reconnection automatically, but the code is a mesh and I really can't see how it works. In the foreground, it sounds like it never stops to try to reconnect even without the internet and even backgrounding. Something like really bad practice. But it works.
The point is: it's important for the app to reconnect automatically. How can I do this? Notifications?
Thanks! Peace, Moisés!