Xamarin.Form make OutBound Call with SpeakerPhoneOn

Universal Camera 276 Reputation points
2023-01-25T21:38:47.23+00:00

It use to be that AudioManager allowed to turn SpeakerPhone On and Off during InBound and OutBound Call. I have posted several question for Android 10-13 with Xamarin each of which have fallen on deaf ears. WHY? Could it'd be that Google has sabotage the old WORKING protocols into new protocols and has blindsided Xamarin. Whatever the reasons are it's creating a lot of problems in using speakerphone. In my search I am learning that Android documents reference using PreciseCallState for managing status of outbound calls. Since OffHook event is the only State Event currently available which really does not expose the events regarding if other phone has answered your call. I wrote a background service that monitors the current outgoing call and I discovered the CallMode always InCall status and only OffHook event is fired. My attempt to activate the speakerphone using this background service yielded no success. PLEASE Someone HELP!!!!

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,292 questions
{count} votes