Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beacon detection issue #269

Open
SingothuSrinu opened this issue Oct 31, 2023 · 2 comments
Open

beacon detection issue #269

SingothuSrinu opened this issue Oct 31, 2023 · 2 comments

Comments

@SingothuSrinu
Copy link

Version

latest

Platform

Android

OS version

13 android

Steps to reproduce

Expected behavior

After getting 1st beacon data if we approach 2nd beacon it has to detect 2nd beacon and get data from beacon

Actual behavior

when ever app is launch, app detects 1st beacon( navigate and come back to initial screen) and we approach to second beacon scanning is stop

const region = {
identifier: 'NAME',
uuid: '*********16digit code ******',
};

        if (Platform.OS === 'android') {
            Beacons.setForegroundScanPeriod(1000);
            Beacons.startMonitoringForRegion(region)
            Beacons.startRangingBeaconsInRegion(region);
            this.beaconListner = Beacons.BeaconsEventEmitter.addListener(
                'beaconsDidRange',
                data => {
                    if (data?.beacons && data.beacons.length > 0) {
                         console.log('beacon data' + data.beacons);
                        this.validateBeacons(data);
                    } else console.log('else condition collision' + data.beacons.length);
                },
            );
        } 
@yasintz
Copy link

yasintz commented Jan 6, 2024

I am recommending to use https://github.com/JanSneeuw/react-native-beacon-radar

@noway
Copy link

noway commented Jan 11, 2024

@SingothuSrinu update org.altbeacon:android-beacon-library in react-native-beacons-manager/android/build.gradle to 2.20.1. But there are some incompatibilities with the values the new AltBeacon library version outputs. More work needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants