react-native-callkeep
react-native-callkeep copied to clipboard
Audio routing on Android is not routing to Speaker
Bug report
-
[x] I've checked the example to reproduce the issue.
-
Reproduced on:
-
[x] Android
-
[ ] iOS
Description
When using RNCallKeep.setAudioRoute(systemId, routeName), if routeName is Speaker (or whatever the name of the speaker is from the list from RNCallKeep.getAudioRoutes()) the audio is routed to the Earpiece instead of Speaker.
Logs
selected audio route: Speaker
RNCallKeep didChangeAudioRoute {"callUUID": "47ce4dbb-4dc1-4f27-9165-5afa9eae0a2d", "handle": "909c6991-96c6-4844-a925-accd3a0fdd94", "output": "SPEAKER"}
AudioDeviceManager: _onDeviceChanged
AudioDeviceManager: emit event DeviceChanged
onAudioDeviceChanged currentDevice Earpiece
Versions
- Callkeep: "4.3.12"
- React Native: "0.72.4"
- Android: 11
- Phone model: Google Pixel 2XL
same here