Skip to content

Region enter/exit events not firing #42

Description

@dlindahl

Version

1.0.7

Platform

iOS

OS version

iOS 10

Steps to reproduce

  1. Monitor region enter/exiting for a beacon
  2. Toggle beacon activation
  3. Note that no events get fired other than didRange

Expected behavior

regionDidEnter and regionDidExit events should fire when moving in and out of range of a beacon

Actual behavior

regionDidEnter and regionDidExit events do not fire at all

The code I'm using is pulled straight from the README with the exception of adding event listeners for regionDidEnter and regionDidExit:

DeviceEventEmitter.addListener('regionDidEnter', data => {
  console.info('REGION ENTER!', data)
})
DeviceEventEmitter.addListener('regionDidExit', data => {
  console.info('REGION EXIT!', data)
})

and changing my region definition:

const region = {
  identifier: 'Estimotes',
  major: 1,
  minor: 1,
  uuid: '[MY UUID]'
}

No matter what I do, I cannot get either of these events to fire. The only thing I see is that XCode shows the following NSLog output: createBeaconRegion with: identifier - uuid - major - minor

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