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

Pairing Success CallBack issue

Open HCLThiruG opened this issue 5 years ago • 3 comments

we are trying to pairing the iOS and Android device with BLE device but unable get the success of failure callback.

Please suggest us how to get the Pairing success or failure callback in both iOS and Android.

HCLThiruG avatar Dec 08 '20 09:12 HCLThiruG

I would also like to request this. I'm working on an app that should only proceed if pairing was successful but I have no way to check this right now as far as I can understand. I can only check if there's a connection.

Xenofono avatar Feb 26 '21 15:02 Xenofono

as far as I see the only thing this library supports is if we have a connection.

franzejr avatar Apr 21 '21 13:04 franzejr

On Android you can set an event emitter listener for the event BleManagerConnectPeripheral to know if you paired. However, the concept of "bonding" is only an Android concept, which is how you'll know if the bluetooth device has been save to memory for future use.

Android can use the same method above, but for the event BleManagerPeripheralDidBond, however I don't know of a way right now, using this library, if we can check if the paired device was saved on iOS. i.e., pressing the pairing OS modal has no event to listen to for success/fail.

cfradella avatar Dec 12 '23 22:12 cfradella

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

marcosinigaglia avatar Mar 12 '24 01:03 marcosinigaglia