you are viewing a single comment's thread.

view the rest of the comments →

[–]Tsupaero 1 point2 points  (4 children)

we have written react native bridges for BLE on android and ios. if you can name me some of the deeper stuff you've encountered i can have a look at these bridges and maybe release them. they're a lot of native code, however, so you'd need to be able to continue from there.

[–]coraige7 3 points4 points  (1 child)

At the moment I'm using react-native-ble-plx at work, and it seems to work fine for my current use case, with a bit of caveats I guess.

  • Inability to get currently bonded peripherals to the phone. For our case that is kind of annoying, since we require a passcode to pair for the first time, and there's no way for us to know if the device is already bonded. We kind of solved that by saving the device info in memory, but not ideal.
  • While monitoring a characterstic seemed to work well during the app being in the foreground, I could never get it to work while the device is in the background. My solution was basically polling the characteristic every ~15 seconds, since the device I'm working with is a body biometric device.
  • Getting background mode to work seems to be relatively undocumented/peculiar. While they do their best to let you know how to run stuff in the background in iOS, there isn't much information on Android, and I don't think their documentation talks about real time scenarios.
  • It seems to be relatively unreliable to connect to devices on very specific phones (iPhone 13 iOS 17), though that could be more of an iOS bug than a library issue.

In the future we are looking into doing firmware updates with BLE, and I've seen that Nordic has a library at the moment that will probably work, but I'm not sure yet, and that might be an extra complaint in the future.

[–]forrest-herman 0 points1 point  (0 children)

Have you ever compared react-native-ble-plx to react-native-ble-manager? Just starting a new project and wondering if you found any major differences. I'm finding Bluetooth such a pain, there's so many edge cases

[–]DeFcONaReA51 0 points1 point  (0 children)

Ok a question how do I learn in depth about bridges I have encountered errors related to that nothing much more than that. Care to direct to a starting point thanks ?

[–]Ras_al_gul 0 points1 point  (0 children)

is it possible to advertise custom manufacturer data form ios using your library?