react-native-callkeep
react-native-callkeep copied to clipboard
[Android] After accepting an incoming call I can't switch to Bluetooth
Bug report
-
[ ] I've checked the example to reproduce the issue.
-
Reproduced on:
-
[x] Android
-
[ ] iOS
Description
Steps to Reproduce
- I used a customized incoming call package for android.
- self-managed: true in android option.
- after accepting the call. mobile phone ringtone sound is stopped. but the Bluetooth headset ringing is not stopping.
- it is working fine in outgoing calls.
Versions
- Callkeep: 4.3.3
- React Native: 0.68.2
- Android: 11 and above.
- Phone model: Poco X3
Logs
Paste here
same
Same here. In my case it is showing this in the logs:
I'm working in self-managed mode and when I report an incoming call the ringtone doesn't start on the Bluetooth device. It works for outbound calls and all Bluetooth permissions are set.
Samsung - Android 12
hey @mariouzae did you manage to solve this for you?
@wilmxre, not yet, but it works for versions prior to Android 11. I was trying to call the native function startBluetoothSco from AudioManager before calling addNewIncomingCall and it works intermittently, it seems the Bluetooth SCO takes a few seconds to connect and sometimes it fails to connect.