
Quote from Guust on January 12, 2022, 4:18 pmHello gents,
I want to create an application that a user can install on either of their two devices.
The application should run in the background and trigger the user (popup / sound) when both devices are physically separated (by bluetooth/location?)The goal is to notify a user if he forgets one of the two devices when getting out...
Does anyone here have an idea on how I can easily fix this?
Grtz,
Hello gents,
I want to create an application that a user can install on either of their two devices.
The application should run in the background and trigger the user (popup / sound) when both devices are physically separated (by bluetooth/location?)
The goal is to notify a user if he forgets one of the two devices when getting out...
Does anyone here have an idea on how I can easily fix this?
Grtz,

Quote from Vadim on January 13, 2022, 4:09 am@guust
It occurs to me to make the application record the location (geo-position) of the device at specified intervals and record this data on the server. Then it would compare the received value with what the second device recorded on the server. It could be the same file on the server, where the first device writes to the first line, and the second to the second. Or it can be two different files - one for each device. A specified difference in meters will mean that the devices are separated.
It occurs to me to make the application record the location (geo-position) of the device at specified intervals and record this data on the server. Then it would compare the received value with what the second device recorded on the server. It could be the same file on the server, where the first device writes to the first line, and the second to the second. Or it can be two different files - one for each device. A specified difference in meters will mean that the devices are separated.

Quote from susan on January 19, 2022, 7:59 amNot a gent ;)
@guust, I keep location services on my phone turned off for privacy and power reasons, so here is a Bluetooth idea..,.
The solution wouldn't have to use Bluetooth to actually communicate, but if it is possible to list all the bluetooth devices nearby (NW.js ?) then you can poll the list at regular intervals and see when the other one drops out because they are too far apart.
No need to be contact a server, use a remote database, or transfer data. The limited range of Bluetooth does all the work for you.
Not a gent ;)
@guust, I keep location services on my phone turned off for privacy and power reasons, so here is a Bluetooth idea..,.
The solution wouldn't have to use Bluetooth to actually communicate, but if it is possible to list all the bluetooth devices nearby (NW.js ?) then you can poll the list at regular intervals and see when the other one drops out because they are too far apart.
No need to be contact a server, use a remote database, or transfer data. The limited range of Bluetooth does all the work for you.

Quote from Vadim on January 19, 2022, 8:18 pm@susan
I tried this idea a couple of years ago, it does look logical, but came across that some phones (including my Nokia 5) are only visible to external devices if they have the Bluetooth settings screen open. Perhaps this was a feature of the technology I was using. I had to give up the idea at the time. I wanted to do two projects - automatically mark students' presence in class and lock the computer if I went outside the Bluetooth signal with my phone.
I tried this idea a couple of years ago, it does look logical, but came across that some phones (including my Nokia 5) are only visible to external devices if they have the Bluetooth settings screen open. Perhaps this was a feature of the technology I was using. I had to give up the idea at the time. I wanted to do two projects - automatically mark students' presence in class and lock the computer if I went outside the Bluetooth signal with my phone.

Quote from susan on January 20, 2022, 12:14 am@vadim I can see how not having devices visible by default is good security. In that case, your location idea is best!
@vadim I can see how not having devices visible by default is good security. In that case, your location idea is best!

Quote from Vadim on January 20, 2022, 7:36 am@susan
Perhaps there are better options. Or there will be soon.
It is possible to fantasize on this subject. :) For example, the devices can emit sounds with a set periodicity at a frequency inaudible to humans (if it is possible, of course) and if they stop hearing each other, then they are separated.
Perhaps there are better options. Or there will be soon.
It is possible to fantasize on this subject. :) For example, the devices can emit sounds with a set periodicity at a frequency inaudible to humans (if it is possible, of course) and if they stop hearing each other, then they are separated.