Skip to content

beacon detection issue #269

@SingothuSrinu

Description

@SingothuSrinu

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);
                },
            );
        } 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions