关闭蓝牙适配器不调用onConnectionStateChange Android 8.1.0

问题描述 投票:1回答:1

[在Android系统设置中关闭蓝牙使我们在Android <27(Oreo)中调用BluetoothGattCallback.onConnectionStateChange()。但是,当我在Pixel或Nexus 5X(Android 8.1.0)上尝试使用该设备时,却没有收到该回调。蓝牙代码是否有一些更改,我们没有通过蓝牙设置更改收到有关BluetoothProfile.STATE_DISCONNECTED的通知。我注意到设备断开了连接。同样,在关闭BLE设备时,也会调用回调。任何见解都受到赞赏!

此处作为问题提起Google Issue

android bluetooth android-bluetooth android-ble bluetooth-gatt
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.