Speakerphone not responding on Android 11 but responding on Android 10

Universal Camera 276 Reputation points
2021-03-12T15:54:33.25+00:00

If I deploy this on my Android 10 phone then speakerphone is activated during a phone call

AudioManager am = (AudioManager)Android.App.Application.Context.GetSystemService(Context.AudioService);
am.Mode = Mode.InCall;
am.SpeakerphoneOn = true;

however same code does not produce same results on Android 11 phone (Speakerphone is not activated)

I have a Cross-Platform App using VS2019 Community Version 16.9.1

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.