App crashes when it reaches this line.
Beacons.detectIBeacons();
const identifier = 'iBeacon';
const region = { identifier, UUID };
// Monitor beacons inside the region
Beacons
.startRangingBeaconsInRegion(region)
.then(() => console.log('Beacons monitoring started succesfully'))
.catch(error => console.log(Beacons monitoring not started, error: ${error}));
App crashes when it reaches this line.
Beacons.detectIBeacons();
const identifier = 'iBeacon';
const region = { identifier, UUID };
// Monitor beacons inside the region
Beacons
.startRangingBeaconsInRegion(region)
.then(() => console.log('Beacons monitoring started succesfully'))
.catch(error => console.log(
Beacons monitoring not started, error: ${error}));