rusel1989 / react-native-bluetooth-serial

Port of https://github.com/don/BluetoothSerial for react native
476 stars 291 forks source link

Remove paired device #85

Open sadidebbal-rhizom-team opened 6 years ago

sadidebbal-rhizom-team commented 6 years ago

Hello, i'm using your library to communicate with differents devices in bluetooth, I've a paired device list and would like to remove a device from the list if i choose to delete it. It is possible ? there is a method in the library ?

Uzlopak commented 6 years ago

You can not unpair a bluetooth device per native app. You have to do it in the settings.

caiorios commented 4 years ago

Hello, I would like to know why it isn't possible. There is a function called unpairDevice that apparently does nothing.

When I try to call it, the log stops on Start Unpairing.... I suspect onReceive method is not been called. However, I don't know Android stuff.

https://github.com/rusel1989/react-native-bluetooth-serial/blob/09434a0726697902f52ea3a58790fc19f6f14dbe/android/src/main/java/com/rusel/RCTBluetoothSerial/RCTBluetoothSerialModule.java#L596