Open dlindahl opened 8 years ago
I can't seem to get authorizationDidChange to fire.
authorizationDidChange
regionDidEnter and regionDidExit don't fire either, but I'm not sure what to expect so it hasn't been important yet.
regionDidEnter
regionDidExit
beaconsDidRange works great.
beaconsDidRange
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:
I can't seem to get
authorizationDidChange
to fire.regionDidEnter
andregionDidExit
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:
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: