react-native-ibeacon icon indicating copy to clipboard operation
react-native-ibeacon copied to clipboard

`authorizationDidChange` not firing

Open dlindahl opened this issue 10 years ago • 0 comments

I can't seem to get authorizationDidChange to fire.

regionDidEnter and regionDidExit don't fire either, but I'm not sure what to expect so it hasn't been important yet.

beaconsDidRange works great.

Some pseudo-code:

const Region = {
  identifier: 'Radius Networks',
  uuid: UUID,
  major: 1,
  minor: 1
};

/* ... */

function authorizationDidChange(data) {
  console.info('authorizationDidChange', data);
}

DeviceEventEmitter.addListener('beaconsDidRange', beaconDidRange);
DeviceEventEmitter.addListener('regionDidEnter', regionDidEnter);
DeviceEventEmitter.addListener('regionDidExit', regionDidExit);
DeviceEventEmitter.addListener('authorizationDidChange', authorizationDidChange);

Beacons.requestWhenInUseAuthorization();

Beacons.startMonitoringForRegion(Region);
Beacons.startRangingBeaconsInRegion(Region);
Beacons.startUpdatingLocation();

Not sure what else to say beyond "it doesnt look like its working". Let me know if you need any additional info!

Here are some version numbers:

  • React Native 0.15.0
  • iPhone 6
  • iOS 9.2
  • node 5.1.0
  • npm 2.14.13

dlindahl avatar Dec 24 '15 21:12 dlindahl