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

Popular posts from this blog

Lists in Python -

android - can not access to progress bar in an other activity -

html - Not able to access next element of an array javascript -