Skip to content

regionDidEnter/regionDidExit are not firing #40

Description

@montehansen

Version

0.6.0
react-native-cli: 1.2.0
react-native: 0.38.0

Steps to reproduce

static get REGION ()
{
  var region =
  {
    "identifier" : "Entrance",
    "uuid" : "f1116da6-4fa2-4e11-1111-bc5b71e1111e",
    "major" : 2, // tried with and without major+minor
    "minor" : 63288
  }

  return region;
}
DeviceEventEmitter.addListener ( "regionDidEnter", (region) =>
{
  console.log( "***** regionDidEnter: " + JSON.stringify(region || {}, null, "\t") );
});

DeviceEventEmitter.addListener ( "regionDidExit", (region) =>
{
  console.log( "***** regionDidExit: " + JSON.stringify(region || {}, null, "\t") );
});

Beacons.requestAlwaysAuthorization();
// Beacons.requestWhenInUseAuthorization();
Beacons.startMonitoringForRegion(Entrance.REGION);
Beacons.startRangingBeaconsInRegion(Entrance.REGION);
Beacons.startUpdatingLocation();

Expected behavior

regionDidEnter/regionDidExit should fire.

Actual behavior

regionDidEnter does not to fire, or rarely does. I am using Estimote and Kontakt.IO beacons and have the same experience for both. For the Estimote, I did test using the ranging method, and the beaconsDidRange event does appear to fire and I do see change in the proximity field.

Any thoughts?

Thanks,

Monte

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions