android - AltBeacon Minor & Major -
how can minor , major in monitoring mode when beacon detected (background) ?
i check https://altbeacon.github.io/android-beacon-library/samples.html didn't find solution.
monitoring apis not return exact identifiers of matched beacons detected. return reference region
object used monitoring, , if contains null values identifiers (wildcards), won't know beacon identifiers seen.
when need know identifiers, standard approach use ranging apis triggered beaconmanager.startrangingbeaconsinregion(region)
. callback these apis didrangebeaconsinregion(region region, collection<beacon>)
which gives list of every beacon matched in last scan interval.
you can see examples of how use ranging in same samples page here: https://altbeacon.github.io/android-beacon-library/samples.html
Comments
Post a Comment