react-native-ble-manager
react-native-ble-manager copied to clipboard
Not work after turned Bluetooth on -> off -> on.
Version
Tell us which versions you are using:
react-native-ble-manager v ^6.4.0 react-native v 0.55.4 iOS/Android v 10.3/8.0
Expected behaviour
App should work normally after turned Bluetooth on -> off -> on.
Actual behaviour
After turned Bluetooth on -> off -> on, app does not work.
See the picture.
At the second red line, a notification should started same as the first red line. But everything stop without any console log. What happened ?
Hello, what method do you call to turn on Bluetooth?
for turning on bluetooth.BleManager.enableBluetooth() .then(() => { // Success code console.log("The bluetooth is already enabled or the user confirm"); }) .catch((error) => { // Failure code console.log("The user refuse to enable bluetooth"); });
for turning on bluetooth.BleManager.enableBluetooth() .then(() => { // Success code console.log("The bluetooth is already enabled or the user confirm"); }) .catch((error) => { // Failure code console.log("The user refuse to enable bluetooth"); });
Not working on Android 12 app gone carsh