MacKentoch / react-native-beacons-manager

React-Native library for detecting beacons (iOS and Android)
MIT License
576 stars 316 forks source link

Can't find EddystoneUID Beacons #158

Open niv-breez opened 4 years ago

niv-breez commented 4 years ago

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.

RodrigoRamosR commented 4 years ago

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.

chentianci123 commented 4 years ago

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

levepic commented 4 years ago

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