petermetz/cordova-plugin-ibeacon

any way to scan any ibeacons nearby?

Closed this issue · 4 comments

I see the sample code for plugin is about monitoring one particular beacon's uuid, is it possible to scan for any iBeacons getting in the region?

I've not tried it, but if you suppress the UUID validation in the BeaconRegion JS class it would be possible to do that on Android. The iOS CoreLocation API only works with specified UUIDs though, so right now there's no cross-platform API.

@mrtree1 The reason why I ask is that I found some MacOS apps (for testing) that works as iBeacon Scanner. So it can basically detect any iBeacon nearby. Yet most docs I found say that you definitely can't do this on iOS. Is it working differently on MacOS vs. iOS?
So if I want to detect multiple types of iBeacons in a region(types of customers), should I have different set of UUIDs or manipulate the major/minor version?

Hi.
This is question what I am asking also.
I have also this idea, but I didn't get any sample for at least iOS only.
Do you have any sample to detect all near ibeacon list?
I hope you can help me for this.
Thanks so much

@ttback

I'd advise you to use the same UUID and only change the major/minor values. This way you can start monitoring those by specifying only the UUID parameter, leaving the other two blank.
Never tried it, but this should allow the monitoring of beacons who has that given UUID and any combination of the major/minor values which should allow you to satisfy the requirement of yours. All this assuming that you are in control of the UUID's of the beacons you'd like to interact with.

While this is not an answer to the original question ( Tree gave the perfect answer to that already) I hope it will be helpful.

Peter