In the case of unsuccessful Bluetooth connection, actively disconnect without executing context. unregisterReceiver (receiver); At this point, there may be multiple Bluetooth broadcast registrarReceivers, which may crash on some Huawei phones due to a broadcast limit of approximately 1000. Suggest fixing this issue. #851
Labels
After calling establishConnection, it was found that the context. registerReceiver (receiver, new IntentFilter (BluetoothAdapter. ACTION_STATE.CHANGED) in RxBleAdapterState Observable) would be triggered;
In the case of a successful Bluetooth connection, actively disconnecting through dispose will execute context. unregisterReceiver (receiver);
If the Bluetooth connection is not successful at this time, actively disconnect through dispose without executing context. unregisterReceiver (receiver); At this point, there may be multiple Bluetooth broadcast registrarReceivers, which may crash on some Huawei phones due to a broadcast limit of approximately 1000. Suggest fixing this issue
The text was updated successfully, but these errors were encountered: