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

Event 'beaconServiceConnected' not trigged

Open Pacn91 opened this issue 6 years ago • 2 comments
trafficstars

Version

Master

Platform

Android

OS version

Android 8.0

Steps to reproduce

  1. Beacons.addIBeaconsDetection()
  2. 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.

Pacn91 avatar Nov 28 '18 12:11 Pacn91

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!

Pacn91 avatar Dec 10 '18 13:12 Pacn91

Can confirm the same behaviour on Huawei Mate 8 running Android 8 and a Samsung Galaxy s9+ also running Android 8.

km147 avatar Dec 19 '18 10:12 km147