react-native-incall-manager
react-native-incall-manager copied to clipboard
the setForceSpeakerphoneOn not working
the setForceSpeakerphoneOn seems not working in Android
Same problem. Any workaround or fix available?
Is it because of this piece of code not being called?
// Switch to new device but only if there has been any changes.
if (newAudioDevice != selectedAudioDevice || audioDeviceSetUpdated) {
// Do the required device switch.
setAudioDeviceInternal(newAudioDevice);
Log.d(TAG, "New device status: "
+ "available=" + audioDevices + ", "
+ "selected=" + newAudioDevice);
/*
if (audioManagerEvents != null) {
// Notify a listening client that audio device has been changed.
audioManagerEvents.onAudioDeviceChanged(selectedAudioDevice, audioDevices);
}
*/
sendEvent("onAudioDeviceChanged", getAudioDeviceStatusMap());
}
same here having issue..
Did you try enabling <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
?
Did you try enabling
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
?
No, I tried adding this permission but still not working. 😢
the setForceSpeakerphoneOn working but at calling time speaker on then conver into ear speaker i want to ringing phone on ear speaker only any solution for that