react-native-beacons-manager
react-native-beacons-manager copied to clipboard
Event 'beaconServiceConnected' not trigged
trafficstars
Version
Master
Platform
Android
OS version
Android 8.0
Steps to reproduce
- Beacons.addIBeaconsDetection()
- Beacons.BeaconsEventEmitter.addListener('beaconServiceConnected',....
componentDidMount() {
Beacons.addIBeaconsDetection();
this.beaconsServiceDidConnect = Beacons.BeaconsEventEmitter.addListener(
'beaconServiceConnected', () => {
console.log('service connected');
this.startRangingAndMonitoring();
},
);
}
Expected behavior
Receiving an event that tell us that the service is connected and startRangingAndMonitoring method starts.
Actual behavior
Nothing happens. The event is not trigged.
I found that in some devices the event is trigged but in other devices it is not. Does any one get the same behaviour? Or knows how to solve this issue? Thank you!
Can confirm the same behaviour on Huawei Mate 8 running Android 8 and a Samsung Galaxy s9+ also running Android 8.