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

Does not scan when pass UUIDs to startDeviceScan on Android

Open IvKr95 opened this issue 3 years ago • 3 comments

Prerequisites

  • [yes] I am running the latest version
  • [yes] I checked the documentation and found no answer
  • [no] I checked to make sure that this issue has not already been filed

Expected Behavior

Runs the same on ios and android

Current Behavior

iOS - gets packages when pass in UUIDs Android - does not get packages when pass in UUIDs

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. step 1
  2. step 2
  3. ...

Context

  • react: 16.13.1
  • react-native: 0.63.4
  • react-native-ble-plx: 2.0.3
  • Platform: Android/iOS.
bleManager.startDeviceScan([SERVICE_DATA], null, async (error: BleError | null, device: Device | null) => {
                if (error) {
                    console.log('SCAN ERROR =', error);
                }

                if (device) {
                }
            });

IvKr95 avatar Dec 03 '21 14:12 IvKr95

Hi, can you specify on which device you are having this problem and what version of android?

mciechanowicz avatar Dec 07 '21 11:12 mciechanowicz

@mciechanowicz This is Samsung Galaxy A51 and Android version 11.

IvKr95 avatar Dec 08 '21 06:12 IvKr95

~having the same issue, can't pass an array of service UUIDs on Android. Galaxy S20 FE, Android version 12.~

remipou avatar Jun 06 '22 11:06 remipou

The new major release updates the core packages that support the latest versions of the operating system and fixes some old bugs. Please confirm if the issue still persists and create a new issue if it still does.