alann-maulana / flutter_beacon

An hybrid iBeacon scanner and transmitter SDK for Flutter Android and iOS.
Apache License 2.0
118 stars 148 forks source link

Ranging Beacons #37

Closed JamesSwag closed 4 years ago

JamesSwag commented 4 years ago

Hello,

I'm new to flutter and I want to create a Beacon Scanning app, if I simply want to scan any nearby beacons and get their UUID do I use the ranging method?

alann-maulana commented 4 years ago

Hi @JamesSwag

yes, you can use the ranging method to find nearby beacons. In Android you can find all beacons without UUD, but in iOS you must define at least a region with identifier and UUID as example here.

JamesSwag commented 4 years ago

Thank You, however if I need to set an identifier and UUID for iOS wouldn't that be the same as just monitoring.

alann-maulana commented 4 years ago

Yep, both ranging and monitoring beacons are using region as well..

JamesSwag commented 4 years ago

Is there anyway I can monitor for multiple different regions each with a different UUID?

alann-maulana commented 4 years ago

Of course you can @JamesSwag but FYI, the more region you put to ranging or monitoring beacons will slow down your phone. Especially on lower end and old phone.

luisestudioalfa commented 4 years ago

So, if i have 500 beacons, do i have to create a Region with 500 elements ( each with its uuid and identifier)? there is no way to group them, so the región only has one or some items?

For example monitoring all the beacons with uuid has 33333333-2222-1111-4444-XXXXXXXXXXXXX?

Where the XXX represents the identifier of the beacons, so that you don't have to define 500 regions?

And what is the difference between ranging and monitoring then?

alann-maulana commented 4 years ago

That's a huge amount of beacon btw @luisestudioalfa. One of my project, use almost a hundred of beacons. So instead of creating every region ranging for every beacons, I only scan the UUID only. When beacon(s) with current UUID, I will immediately filtered it using the existing major and minor of these beacons.

There are a powerfull search engine and a tons of article if you are curious about ranging vs monitoring beacons, click this link.