innoveit / react-native-ble-manager

React Native BLE communication module
http://innoveit.github.io/react-native-ble-manager/
Apache License 2.0
2.13k stars 768 forks source link

Can't identify device ( Name is null for all devices ) #1240

Closed aliwaqar981 closed 4 months ago

aliwaqar981 commented 5 months ago

Describe the bug Name and Local name is null for all scanned devices

To Reproduce Steps to reproduce the behavior:

  1. Just run the example given in the repo

Expected behavior Name should be available for most of the devices.

Screenshots WhatsApp Image 2024-06-21 at 12 23 39 AM

Smartphone (please complete the following information):

Additional context Mac address of device I'm trying to find is like 00:9C:C0:33:XX:XX but I'm not getting this while scanning through the example app. Although it's available when search from native bluetooth app of my phone.

aliwaqar981 commented 5 months ago

@typester @seigel @quatrix @Volcore any help would be appreciated.

varun761 commented 5 months ago

You can add a check if the device name is null don't display that. It will solve the issue that you are facing now.

aliwaqar981 commented 5 months ago

name is null for all devices. If I place this check then there won't be any device left

andreiwow2 commented 4 months ago

I think I might have the same issue, there is one device that I can find in the phone bluetooth list, but using react-native-ble-manager, not. On iOS it does work. The android permissions are correct, I can find other BLE devices, just this one not. So I assume it might find it but with a null name

brianwachira commented 4 months ago

I am also experiencing the same issue but with another library. ( react-native-ble-plx ) I came to issues just to see whether this lib has the same issues

brianwachira commented 4 months ago

I am also experiencing the same issue but with another library. ( react-native-ble-plx ) I came to issues just to see whether this lib has the same issues

Update, I ended up using React Native Bluetooth Classic. https://kenjdavidson.com/react-native-bluetooth-classic/react-native/rn-bluetooth-classic/ In my use case, I am expected to send data between mobile devices & device name is needed ( inorder to identify device ). It seems Bluetooth low energy only allows smallest bytes of device information to be sent, hence name may miss at times

timmyjose commented 3 months ago

I am also experiencing the same issue but with another library. ( react-native-ble-plx ) I came to issues just to see whether this lib has the same issues

Update, I ended up using React Native Bluetooth Classic. https://kenjdavidson.com/react-native-bluetooth-classic/react-native/rn-bluetooth-classic/ In my use case, I am expected to send data between mobile devices & device name is needed ( inorder to identify device ). It seems Bluetooth low energy only allows smallest bytes of device information to be sent, hence name may miss at times

Hey @brianwachira, just curious - I too have a usecase where I need to communicate between devices (iOS and Android). Did you manage to get the communication done using the library you linked to? If you have some demo app or pointers, that'd be great!