don/BluetoothSerial

Unable to scan Bluetooth devices.

DONGNEZHA opened this issue · 0 comments

A strange phenomenon, I introduced two Bluetooth plugins, cordova-plugin-ble-central and cordova-plugin-bluetooth-serial. The former is used to handle BLE type Bluetooth devices, while the latter handles classic Bluetooth. However, when I use the methods of the second plugin alone on my device (HUAWEI M6), for example: bluetoothSerial.setDeviceDiscoveredListener(deviceDiscoveredListener); bluetoothSerial.discoverUnpaired(onDiscoverUnpaired); it does not scan any Bluetooth devices. Only when I first call the scanning method of the first plugin (ble.startScan) and delay for a while, the discover method of the second plugin can return Bluetooth information to me.