react-native-ble-manager icon indicating copy to clipboard operation
react-native-ble-manager copied to clipboard

Not work after turned Bluetooth on -> off -> on.

Open nagaokashi opened this issue 6 years ago • 3 comments

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. ble_notwork

At the second red line, a notification should started same as the first red line. But everything stop without any console log. What happened ?

nagaokashi avatar Oct 16 '18 15:10 nagaokashi

Hello, what method do you call to turn on Bluetooth?

chentianci123 avatar Nov 28 '19 01:11 chentianci123

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"); });

HKSOLDIER avatar Oct 09 '20 18:10 HKSOLDIER

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

zeeshan6 avatar Jul 17 '22 10:07 zeeshan6