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

MonitoringListener should return list of beacons that triggered enter/exit event #18

Closed
nutfox opened this issue Feb 10, 2014 · 3 comments
Assignees

Comments

@nutfox
Copy link

nutfox commented Feb 10, 2014

When running a MonitorListener or RangingListener we discovered the following problem:
When starting it for a region with specified major and minor values, these values are returned. When starting it for the ALL_ESTIMOTE_BEACONS region (with Major and Minor set to null) the region that is passed to the callback methods contains null in Major and Minor.

This might as well be a feature request: How can I monitor/range for all major/minors for a given uuid - yet when the region is entered, I get the exact major and minor values of the region that triggered the event?

@wiktor
Copy link
Contributor

wiktor commented Feb 11, 2014

Region object that is passed in the callback is the same that was given in startMonitoring/startRanging methods. This is working as intended since you want to be able to distinguish monitored/ranged regions.

In ranging you have this information. Take a look at RangingListener#onBeaconsDiscovered. Second param is list of beacons that are being seen in this region.

When it comes to monitoring and getting info which beacons triggered enter/exit events, it is on the way in the next release.

@nutfox
Copy link
Author

nutfox commented Feb 12, 2014

Ok. We have the following requirement:
A number of locations - each with 1 or more beacons (>100) - when a user enters one of the locations our app must be notified about which location it is. Can this be done by defining the same region for all beacons and then using the beacon identification to assess which location the user is in?

@wiktor
Copy link
Contributor

wiktor commented Feb 13, 2014

Yes, you can use single region for all your beacons that is 'new Region("regionId", null, null, null)' and differentiate them in your app.

You can also set your beacons' identifiers in order to match location. That is major/minor values could indicate a location. And you can monitor only those regions.

wiktor added a commit that referenced this issue Mar 18, 2014
 - CAN BREAK BUILD: MonitoringListener returns list of beacons the triggered enter region event (#18)
 - Better messaging when BeaconManager cannot start service to scan beacons (#25)
 - Fixed bug in SDK when other beacons are around (#27)
@wiktor wiktor closed this as completed Mar 18, 2014
jamesmontemagno added a commit to jamesmontemagno/Estimotes-Xamarin that referenced this issue Aug 7, 2014
0.4.2 (June 24, 2014):

Fixes Estimote/Android-Fleet-Management-SDK#55: it is safe to
use library from remote process
0.4.1 (March 18, 2014)

CAN BREAK BUILD: MonitoringListener returns list of beacons the
triggered enter region event
(Estimote/Android-Fleet-Management-SDK#18)
Better messaging when BeaconManager cannot start service to scan
beacons (Estimote/Android-Fleet-Management-SDK#25)
Fixed bug in SDK when other beacons are around
(Estimote/Android-Fleet-Management-SDK#27)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants