InfiniTimeOrg / InfiniTime

Firmware for Pinetime smartwatch written in C++ and based on FreeRTOS
GNU General Public License v3.0
2.76k stars 943 forks source link

Find my phone option #598

Closed AndriiZ closed 3 years ago

AndriiZ commented 3 years ago

It would be great to search lost phone from the watch. I dont know if any companion app support this feature

tmilburn commented 3 years ago

Gadgetbridge has the required activity which can be triggered https://github.com/Freeyourgadget/Gadgetbridge/blob/df44b798c91d832d1ae05821c860decc5ba8ac93/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/FindPhoneActivity.java but it requires code to be added to the pinetime device support in https://github.com/Freeyourgadget/Gadgetbridge/blob/d951ab1da7c4e08241eb25938f99cbe884fbb74d/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java and a way of triggering this from the watch. I would suggest a new service for this with a characteristic to start and stop finding the phone.

Avamander commented 3 years ago

I would suggest a new service for this with a characteristic to start and stop finding the phone.

Standard has an immediate alert characteristic for exactly this purpose.

tmilburn commented 3 years ago

Isn't the immediate alert service for finding a device (peripheral) rather than a phone (central) since it has a single write characteristic.

Avamander commented 3 years ago

Both sides can expose services and characteristics.

Avamander commented 3 years ago

Duplicate of https://github.com/InfiniTimeOrg/InfiniTime/issues/343