Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authorizationDidChange not firing #22

Open
dlindahl opened this issue Dec 24, 2015 · 0 comments
Open

authorizationDidChange not firing #22

dlindahl opened this issue Dec 24, 2015 · 0 comments

Comments

@dlindahl
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant