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

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

Open aliwaqar981 opened this issue 1 year ago • 3 comments
trafficstars

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):

  • Device: Vivo v21e
  • OS: Android12
  • react-native-ble-manager version: ^11.5.5
  • react-native version: 0.74.2

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 avatar Jun 20 '24 19:06 aliwaqar981

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

aliwaqar981 avatar Jun 23 '24 17:06 aliwaqar981

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.

varun761 avatar Jun 25 '24 05:06 varun761

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

aliwaqar981 avatar Jun 26 '24 17:06 aliwaqar981

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

andreiwow2 avatar Jul 05 '24 08:07 andreiwow2

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 avatar Jul 23 '24 18:07 brianwachira

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

brianwachira avatar Jul 24 '24 08:07 brianwachira

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!

timmyjose avatar Aug 27 '24 12:08 timmyjose