react-native-beacons-manager icon indicating copy to clipboard operation
react-native-beacons-manager copied to clipboard

Can't find EddystoneUID Beacons

Open niv-breez opened this issue 5 years ago • 3 comments

Hi, I created a react-native app with this code:

import Beacons from 'react-native-beacons-manager'

// Tells the library to detect iBeacons
Beacons.detectIBeacons()
Beacons.detectEddystoneUID()
Beacons.detectAltBeacons()

// Start detecting all iBeacons in the nearby
Beacons.startRangingBeaconsInRegion('REGION1')
  .then((value) => {
    console.log(`Beacons ranging started succesfully!`)
  })
  .catch((error) => {
    console.log(`Beacons ranging not started, error: ${error}`)
  })

// Print a log of the detected iBeacons (1 per second)
DeviceEventEmitter.addListener('beaconsDidRange', (data) => {
  console.log('Found beacons!', data.beacons)
})

But when running the app on android and viewing the log I see only iBeacons and AltBeacons and not EddystoneUID.

I use the Beacon Sumulator mentions in the docs.

Is it a bug or am I missing something ?

Thanks.

niv-breez avatar Oct 22 '19 11:10 niv-breez

I'm facing the same issue with custom templates. From my investigation, for some reason, only iBeacon is working (AltBeacon is an openSource of iBeacon, maybe that's why still works too). All the others fail to me. I tried react-native 0.61. 0.60 and now my official app is using 0.59.10. Seems more stable. I tried both versions of this library, the stable 1.0.7 and the 1.1, both had same issues.

RodrigoRamosR avatar Oct 23 '19 06:10 RodrigoRamosR

我也遇到了同样的问题,请问您解决了吗

chentianci123 avatar Nov 08 '19 07:11 chentianci123

Check out this fork: https://github.com/levepic/react-native-beacons-manager

levepic avatar Feb 20 '20 08:02 levepic