Closed filipebatista closed 6 months ago
@filipebatista I cannot reproduce this issue with your provided steps. Regarding your linked PR. The bluetooth device name is passed from the intent in STATE_CONNECTED is because there's a delay before device name can be taken via the BluetoothHeadset proxy class - link. Later when STATE_AUDIO_CONNECTED arrives no name is passed and bluetooth device name is gather via the proxy class here If you are having issue with bluetooth device disappearing from the list there might be some other issue here. cc: @afalls-twilio
I was able to reproduce the issue several times, with a Xiaomi mi lite 11, Samsung A10 and with airpods and defunc true go . Only when I performed the change of the open pull request the device name appeared correctly in the. Audioswitch available devices.
cc @nylton-martins
@filipebatista are you able to reproduced this with the quickstart? we are struggling to reproduce this issue and looking for a way to so that we can fix it.
Hello 👋 Didn't try to replicate with the quick start, nevertheless currently I'm no longer with the product that used your SDK so I can't really try it. Feel free to close if you find relevant. Thanks
closing due to no longer customer issue
Describe the bug The
BluetoothHeadsetManager
receives an update form the system indicatingSTATE_AUDIO_CONNECTED
is calling theBluetoothHeadsetConnectionListener.onBluetoothHeadsetStateChanged()
with no Bluetooth device name. This will trigger theBluetoothHeadsetConnectionListener
registered inAudioSwitch
that consequently will remove the previous Bluetooth device detected by AudioSwitch.To Reproduce Steps to reproduce the behavior:
STATE_CONNECTED
is received inBluetoothHeadsetManager
and that the device becomes available inAudioSwitch.availableAudioDevices
.STATE_AUDIO_CONNECTED
inBluetoothHeadsetManager
and that the previously detected device is removed fromAudioSwitch.availableAudioDevices
.Expected behavior In
BluetoothHeadsetManager
when receiving aSTATE_AUDIO_CONNECTED
should call theheadsetListener?.onBluetoothHeadsetStateChanged(bluetoothDevice.name)
AudioSwitch Version Version: 1.1.5