react-native-ble-plx: Cannot scan Eddystone service UUID on Android with versions > 2.0.3

Prerequisites

  • I checked the documentation and FAQ without finding a solution
  • I checked to make sure that this issue has not already been filed

Expected Behavior

startDeviceScan(["0000feaa-0000-1000-8000-00805f9b34fb"], ...) should find BLE devices advertising with this standard Eddystone UUID when running on iOS and on Android

Current Behavior

When using v3.1.2 devices with this UUID are NOT found on Android, but are found correctly on iOS. When using v2.0.3 devices with this UUID are found correctly on Android AND on iOS

Library version

3.1.2

Device

Android 12 OnePlus Nord N20 5G CPH2459

Environment info

react-native `0.72.6` and expo `^49.0.21`

Steps to reproduce

Connect Android device to development system with Android studio installed, and have an Eddystone beacon available nearby.

$ git clone git@github.com:pwellner/ble-plx-scan-bug.git
$ yarn
$ npx expo prebuild
$ npx expo run:android --device

Run test program on device. Press the “GET PERMISSIONS” button, accept all permissions, then press the “SCAN SELECTED” button, and observe the log files.

Devices with Eddystone UUID "0000feaa-0000-1000-8000-00805f9b34fb" are not logged.

$ git checkout HEAD~1   # (only change is to revert package to v2.0.3)
$ yarn
$ npx expo prebuild
$ npx expo run:android --device

Run test program again and observe the logs. Devices with Eddystone UUID "0000feaa-0000-1000-8000-00805f9b34fb" are all found correctly.

Formatted code sample or link to a repository

https://github.com/pwellner/ble-plx-scan-bug

Relevant log output

Devices with UUID 0000feaa-0000-1000-8000-00805f9b34fb appear correctly on iOS and on Android when using v2.0.3, but they do not appear when using v3.1.2 on Android

Additional information

No response

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

The bug has been confirmed and we are working on it.

Has there been any movement on this? I’m using v3.5.0 and experiencing the same issue.

Or did you manage to find a workaround @pwellner ?