-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio is not routed to speaker on incoming call on Android #230
Comments
Same to me. When coming from a call, the speaker dont back to on. I noticed that on Android 11 this works normally, on Android 12 the problem occurs. Any solution? |
i did two things:
|
In my case, I listener an Device event emitter when the audio focus coming back to my app and set speaker to true, example:
|
This is not a bug, but rather a standard behavior of the operating system. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My scenario is the following:
I am using
react-native-incall-manager
withreact-native-callkeep
.When initiating an outgoing video call i am calling
InCallManager.start({ media: 'video', auto: true, ringback: '_BUNDLE_', });
in CallKeep'sdidActivateAudioSession
event, which plays a ringback sound, then when the video call is connected the audio is playing through the speakers, at is should.But on incoming calls, when the call is answered the video call is playing through the earpiece. On CallKeep's
showIncomingCallUi
event i am callingInCallManager.start({ media: 'video' });
, to have all the events around the video call be handled automatically by IncallManager.I think the issue might happen because IncallManager is used with CallKeep and maybe there are some overriding issues.
These are my logs, starting from when the incoming call is first registered to when the video call was answered and connected:
As you can see in
the speaker is selected and the audio device is updated, but the audio is still not routed to the speakers, despite the logs.
p.s.
--hasEarpiece: NO
is because i hardcodedhasEarpiece()
return value to false, to make it impossible to route it to the earpieceI tried calling
IncallManager.setForceSpeakerPhoneOn
right afterIncallManager.start({ media: 'video' })
, that gave meso for some reason, on incoming call the SPEAKER_PHONE is not available.
I event tried calling CallKeep's
toggleAudioRouteSpeaker
, but that didn't help either.I would take any advice happily.
The text was updated successfully, but these errors were encountered: