I’m making a name functionalituy the place I’m utilizing third get together name service for calling characteristic in React Native. I need to activate/off speaker whereas on name.
I’ve used this bundle nevertheless it additionally not helped. Additional I’ve tried modifying the AudioManager code and provides following permissions additionally –
<uses-permission android:identify="android.permission.READ_PHONE_STATE" />
<uses-permission android:identify="android.permission.MODIFY_AUDIO_SETTINGS" />
I’ve additionally tried including some adjustments to audioManager.setSpeakerphoneOn(allow);
however nothing is working for me to set speaker on.
I’ve additionally tried doing
audioManager.setMode(AudioManager.MODE_IN_CALL);
& Additionally tried
audioManager.setMode(AudioManager.MODE_RINGTONE;
However none of those choices helped. I wanted this urgently to be performed. For now I want in Android so any options by which it could possibly work ? that might be useful.