0

I am building an Android calling app using an implementation of the ConnectionService. When I call setAudioRoute to change the audio route, or press mute or speaker on the native call screen, the onCallAudioStateChanged method is called and I handle the change there. However, when the call is on hold and I call setAudioRoute or press mute or speaker from the native call screen, the onCallAudioStateChanged method is not called.

I'm using this method to keep my custom UI in sync with the native call screen. So for example, if I were to press the speaker button on the native call screen, the onCallAudioStateChanged method will be called where I can then update my custom UI to reflect that the call is now on speaker. However, if the call is on hold and I press the speaker button on the native call screen, the onCallAudioStateChanged method is not called, so I have no way to reflect this change in my custom UI, so the state will not be in sync.

Is there any way to make it so that this event fires when the call is on hold? And if not, is there any other method I can use to make sure that the state from the native call screen is in sync with my custom UI?

ramsay2113
  • 48
  • 4

0 Answers0