react-native-beacons-manager
react-native-beacons-manager copied to clipboard
Can't find EddystoneUID Beacons
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.
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.
我也遇到了同样的问题,请问您解决了吗
Check out this fork: https://github.com/levepic/react-native-beacons-manager