react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

the setForceSpeakerphoneOn not working

Open Yaduo opened this issue 4 years ago • 6 comments

the setForceSpeakerphoneOn seems not working in Android

Yaduo avatar Jun 24 '20 19:06 Yaduo

Same problem. Any workaround or fix available?

Rendfold avatar Jul 09 '20 10:07 Rendfold

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());
        }

selfcreator avatar Jul 22 '20 07:07 selfcreator

same here having issue..

tiffanym19 avatar Nov 05 '20 02:11 tiffanym19

Did you try enabling <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> ?

unnikrishnan-anil avatar Dec 07 '20 05:12 unnikrishnan-anil

Did you try enabling <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> ?

No, I tried adding this permission but still not working. 😢

selfcreator avatar Dec 07 '20 18:12 selfcreator

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

rohitthakre avatar Aug 23 '21 07:08 rohitthakre