twilio / audioswitch

An Android audio management library for real-time communication apps.
Apache License 2.0
168 stars 50 forks source link

Apple AirPods do not show up as bluetooth device when connected #32

Closed aaalaniz closed 4 years ago

aaalaniz commented 4 years ago

Describe the bug Apple AirPods do not show up in availableDevices when connected to an Android phone. (Apparently they work with Android devices) 😄

To Reproduce Steps to reproduce the behavior:

  1. Connect a pair of Airpods to Android devices
  2. Start audio device selector
  3. Query availableDevices

Expected behavior Airpods should show up in the available devices.

Actual behavior Airpods do not show up as an available devices

Version

Additional context Originally reported in #28

Alton09 commented 4 years ago

I tested this on a Pixel 3 running AudioSwitch 0.1.4, and I was able to successfully connect a pair of Air Pods with audio output routing to it. I was also able to see the correct device name as shown in the following screenshots.

Screenshot_20200618-154142

Screen Shot 2020-06-18 at 3 44 44 PM

@aaalaniz Closing this issue for now. I'm thinking we should prioritize the multiple bluetooth device support story as the reported issues appear to be related to connecting multiple devices at once.

alizeec commented 4 years ago

Hey What I said in the issue #28 is not what is described here.

It's possible to connect and see AirPods, but sometimes, the name displayed is the name of another bluetooth device, in this case my watch. But it's random, that's why you didn't had the issue @Alton09

Can you please re-open the issue ?

aaalaniz commented 4 years ago

Hey @alizeec

I think what are you describing relates to supporting multiple Bluetooth devices #15. I think the reason you occasionally don't see the AirPods is because the library will only add one Bluetooth device to the availableDevices. We have a story in our backlog to improve support for multiple bluetooth devices.

Thanks!

alizeec commented 4 years ago

Hey @aaalaniz If the library detects only my watch, how can the audio be properly routed to my AirPods ?

Thanks

Alton09 commented 4 years ago

@alizeec Since the library currently only supports a single connected bluetooth device, you should get consistent behavior if you just connect just your AirPods. Please keep an eye out for #15 as we are planning to provide support for multiple bluetooth devices. Thanks!