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

regionDidExit & regionDidEnter not firing on iOS #9

Closed
relaxedtomato opened this issue Mar 13, 2017 · 7 comments
Closed

regionDidExit & regionDidEnter not firing on iOS #9

relaxedtomato opened this issue Mar 13, 2017 · 7 comments
Milestone

Comments

@relaxedtomato
Copy link
Contributor

Version

1.0.1

Platform

iOS

OS version

iOS 10

Steps to reproduce

  1. Follow Android example
  2. call Beacons.startMonitoringForRegion(region)
  3. add listeners

Expected behavior

Events fires similar to Android (some delay) for entering/existing a region.

Actual behavior

No events are firing.

@MacKentoch
Copy link
Owner

Hi @r-bansal

Thank you for the issue.
I will fix that.

@fannedalk
Copy link

I'm having the same problem with Android. Did you get it to work with Android @r-bansal?

The beacon monitoring is started successfully but the event won't trigger:
DeviceEventEmitter.addListener('beaconsDidEnter', (data) => {
console.log('beaconsDidEnter')
console.log(data)
})

@relaxedtomato
Copy link
Contributor Author

@MacKentoch many thanks for the quick reply, any idea as to when a PR will be up? Just curious why it was not working?

@relaxedtomato
Copy link
Contributor Author

relaxedtomato commented Mar 14, 2017

@fannedalk - you need to listen for the correct events so regionDidEnter and regionDidExit, it works fine on Android.

@MacKentoch
Copy link
Owner

@r-bansal it won't be a PR but a new release.

I don't know. I'm still investigating.

But I can tell you it is the same issues as the original lib.
For example

MacKentoch added a commit that referenced this issue Mar 14, 2017
@MacKentoch MacKentoch added this to the 1.0.3 milestone Mar 17, 2017
@MacKentoch
Copy link
Owner

As we discovered with the huge help from @r-bansal (thank you), iOS monitoring has constraints if you want it.
If I were a newcomer to beacon technology and iOS I would be lost.

I want it accessible / easy to understand and use so I'm preparing a huge improvement in the documentation / examples.

@MacKentoch
Copy link
Owner

fixed in v1.0.4.

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

3 participants