position - iBeacon - how to detect a time a user spends in a room or department? -



position - iBeacon - how to detect a time a user spends in a room or department? -

i have app monitors or ranges ibeacons within building. how can observe how long user spends in particular room?

i've observed proximity given beacon may jump near far, based on orientation of device. means cannot 1 time range unknown, visit over. should continuously range distance beacon , consider visit start/end 1 time observe x consecutive "near/unknown" states given beacon?

there no guarantee number of ranging callbacks proximity "unknown" before beacon disappears. instead, should utilize monitoring apis, , consider room exited when phone call didexitregion. ios give spurious exit notification, need protect against this. starting timer on part exit, , perform exit logic if don't didenterregion callback within 5 seconds.

of course, assumes "room" or "department" has beacons transmitter range end exactly @ border of room/department. without precise placement , command on transmitter power, unlikely true. have decide if can live approximation.

position distance ibeacon indoor-positioning-system

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -