Skip to content
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

BLUETOOTH Device not listed #236

Open
mudioo opened this issue Feb 14, 2024 · 1 comment
Open

BLUETOOTH Device not listed #236

mudioo opened this issue Feb 14, 2024 · 1 comment

Comments

@mudioo
Copy link

mudioo commented Feb 14, 2024

Hello, i am trying to get the list of all audio devices wich are connected to a android phone.

InCallManager.start({ media: "audio" });

DeviceEventEmitter.addListener("onAudioDeviceChanged", (event) => {
  console.log(event.availableAudioDeviceList);
});

//output: ["EARPIECE","SPEAKER_PHONE"]
//expected output: ["BLUETOOTH","EARPIECE","SPEAKER_PHONE"]

I am trying it with a bluetooth speaker and with airpods on a xiaomi redmi 12 phone.

@wilmxre
Copy link

wilmxre commented Feb 19, 2024

you can try RNCallKeep.getAudioRoutes() or RNCallKeep.addListener('didChangeAudioRoute') and see if it gives you back the bluetooth device as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants