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

Outgoing call ringback on Android is too loud.

Open RamsayRomero opened this issue 1 year ago • 3 comments

On iOS the ringback that plays when calling InCallManager.start sounds like a normal outgoing call ringback and plays at a normal volume through the earpiece, not the speaker. On Android calling the same method results in a ringback that is played loudly through the speaker, and the audio sounds like an incoming call ringtone. Is this expected behavior on Android or is it just my device? Is there anything I can do to fix this issue?

RamsayRomero avatar Mar 06 '23 18:03 RamsayRomero

@RamsayRomero hey man, did you find a solution for android?

wilmxre avatar Mar 27 '23 13:03 wilmxre

@wilmxre As far as the ringback sounding like in incoming call ringtone, the default ringback just uses the default system ringtone. There is no default system ringback on Android so you have to provide your own and set the ringback to 'BUNDLE'.

As far as the ringback loudly playing through the speaker, I can't figure out what is going wrong. I looked at the native InCallManager logs while producing this issue and the logs say that my device status is earpiece and that the device is not on speakerphone:

D/InCallManager: New device status: available=[SPEAKER_PHONE, EARPIECE], selected=EARPIECE
D/InCallManager: MediaPlayer mRingback onPrepared(), start play, isSpeakerPhoneOn false

Yet it still plays loudly through the speaker, and once the call is answered, the call audio plays normally through the earpiece.

RamsayRomero avatar Apr 19 '23 19:04 RamsayRomero

@RamsayRomero did you manage to figure out the cause of this problem? maybe you have some solution?

KolissnikBogdan avatar Sep 18 '23 12:09 KolissnikBogdan