Questions tagged [react-native-ble-manager]
35 questions
2
votes
1 answer
react native - crash the app when I call scan function with react-native-ble-manager
I used for the first time react-native-ble-manager.
The app has all the permissions, however when I run the BleManager.scan() the app is closing without any error or logs.
I know the code is a little ugly but it's just for testing, the first second…

damooo
- 77
- 7
2
votes
0 answers
React-Native BLE Manager works on Android but not IOS (could not find service with uuid)
I coded a JavaScript react-native project and ran it on my Android phone & iPhone.
It works on android phone but it doesn't work on iPhone.
I am Using BLE manager Library.
I can find & connect devices using ios and android.
I can subscrible and…

HUV
- 59
- 7
1
vote
1 answer
Using react native blemanager I am getting permission problems
I am making an app and part of it is detecting nearby bluetooth devices. When I press scan for bluetooth devices. I get this error on android, it said, need android.permission.BLUETOOTH_SCAN permission for AttributionSource {uid= 10162, packageName…

Griffin Doherty
- 11
- 2
1
vote
1 answer
BleManager not work on Android Api Level 31
I have a app which scans the bluetooth devices. It was working well until android says api level must be 31 or higher.
So i change my code like below:
buildscript {
ext {
buildToolsVersion = "29.0.3"
minSdkVersion = 21
…

Furkan KARABABA
- 17
- 4
1
vote
1 answer
listen to click-event from connected button BLE peripheral, while app is in background
As the title suggests, im trying to listen for click-event from my connected BLE peripheral device even after my react-native app is killed/background mode.
While connected i have a notification subscription on my BLE peripheral device and everytime…

cc_9313
- 219
- 2
- 8
1
vote
0 answers
How to decode BleManager.read response?
I am trying to do this:
const readGlucose = (id, serviceUUID, charasteristicUUID) => {
BleManager.read(id, serviceUUID, charasteristicUUID)
.then(res => {
console.log('read response', res); // [229, 7, 7, 27, 12, 19, 0]
if (res) {
…

Marcus Vinicius
- 11
- 1
1
vote
0 answers
ReactNative ble manager is not reading data from peripheral on IOS
I am building a ReactNative application for both IOS and Android platforms. My app needs to read data from another device via BLE communication. I am using this package for implementing BLE communication,…

Wai Yan Hein
- 13,651
- 35
- 180
- 372
1
vote
0 answers
how to fetch the heart rate of a smartband with react-native-ble-manager
how to fetch the heart rate of a smartband with react-native-ble-manager, I need a method to capture the heart rate
react-native
react-native-ble-manager

Anderson
- 11
- 1
1
vote
1 answer
I can't make run the blemanager.start because promise rejection id:0 null is not an object
I can't start the ble manager in my code.
I use expo.
I tried a lot of solutions I found on internet but none worked for me.
When i get out the blemanager.start my app run correctly.
I don't find any kind of doc about promise in React native...…

Grégoire Antoine
- 11
- 3
1
vote
1 answer
BLE Connection failure : Connection is refused due to unacceptable BD_ADDR
My setup is as follows:
BLE Peripheral in Raspberry Pi 3
nRF tool in Android Phone
My App in the same Android Phone (uses react-native-ble-manager)
When I connect to the Raspberry Pi using nRF tool, it connects successfully.
But, when I connect…

spockshr
- 372
- 2
- 14
0
votes
0 answers
react native android app crash after paired with ble device
I am using react-native-ble-manager to connect ble device.
After I connected with my app, I try to paired the ble device and my phone with BleManager.createBond and return a success message.
However, after a few second, my app crash without any…

tommyt4a
- 1
- 1
0
votes
0 answers
Using react-native-ble-plx in Expo, creating a new BleManager gets me: "TypeError: Cannot read properties of undefined (reading 'createClient')"
I'm using the react-native-ble-plx library for a React Native project in Expo, but every time get the same error.
Console error
I've written my own app, and I've also cloned projects on GitHub that use react-native-ble-plx, but I always get this…
0
votes
0 answers
Bluetooth enable not working on android 12 React native
According to android api leavel 31 I have updated code. before I am trying to enable bluetooth using PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION). for android 12 I have tried with multiple request like this const…

Ravindra Nakrani
- 91
- 1
- 6
0
votes
0 answers
Issues with yarn test using react-native-ble-manager
the problem
I've created a BLE project and I'm facing several issues when trying to perform basic unit tests with the dependency. I couldn't find any resources on YouTube or the official library repository regarding this matter. I'm not sure how to…

mizerski
- 1
- 1
0
votes
2 answers
I am using react-native-ble-manager, BleManager.scan() is not returning a peripheral id or uuid on Android 12, but it is working on iOS
Using react-native-ble-manager package -- when performing BleManager.scan(), I am not getting back a peripheral uuid or id on Android 12. I am correctly passing through params of (serviceUuid, scan seconds, boolean). I am getting back a peripheral…