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

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -