Recent Google Messages - Cancel the initial link between devices

I am creating a Google Apps API Testing Application for Google Apps. For this test, I am using DISTANCE_TYPE_EARSHOT.

According to this thread, the API Strategy is next. DISTANCE _TYPE_ EARSHOT does not seem to limit proximity to the message , after the initial communication between devices, they can receive messages in 10 minutes regardless of distance. I would like to know if this 10-minute limit can be interrupted (to prevent the device from receiving a message when its distance to another device exceeds ~ 5 feet - EARSHOT).

Alternatively, is there a way to get the distance between devices?

Thanks.

+1
source share
1 answer

(I am working on an API)

Today, nearby, the distance is not revealed directly, and this does not make it possible to programmatically "untie" the device. We heard that people want both of these things, functions are on our radar, but we can not comment or transmit further than this.

As a manual hack, you can clear Google Play Services data to unlock devices.

You can get an approximate approximation of distance by measuring BLE RSSI if one of the devices is capable of advertising BLE. This will be sensitive to how the device is held, antenna gain and environmental factors, but better than random ones.

There is no direct label API.

+2
source

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


All Articles