Near API API.DISTANCE _TYPE_ EARSHOT does not seem to limit message proximity

I am using the new APIs: https://developers.google.com/nearby/ to send a message a short distance between devices (~ 5 feet). I set the Strategy distance type to DISTANCE_TYPE_EARSHOT, but I still get messages at long distances between devices. In any case, can I limit my proximity further to receive a message when the devices are really only within earshot?

+3
source share
1 answer

I can answer my question here. I spoke with the developer of this API, and he told me that after the initial link is made between devices, they will remain connected for 10 minutes regardless of distance. This leads to the unexpected behavior noted above.

+4
source

Source: https://habr.com/ru/post/1609031/


All Articles