mitra42 / corona-tracker

Tracking contacts for Coronavirus
GNU Affero General Public License v3.0
1 stars 2 forks source link

Location via web page - deprioritized #21

Open mitra42 opened 4 years ago

mitra42 commented 4 years ago

We considered using web based location tracking.

The user would need to keep a known webpage open, and it would feed the data to the server whenever for example the user spent >10 mins in one location more than 10 meters from the previous location.

This would work - and might still get done, but it has some issues, mostly that apparently web page based location tracking uses a lot of battery when done continuously.

We'll probably add this at some point in the future, or happy to integrate if someone wants to grab this task.

mitra42 commented 4 years ago

If someone wants to grab this, the basic idea is that a web page is opened, and it calls avigator.geolocation.getCurrentPosition to get the current point and navigator.geolocation.watchPosition to setup a callback. There is code still currently in src/browserlib but we didn't complete testing before the pivot to use exercise trackers.