Re: [geolocation-sensor] Support geolocation (especially geofencing) in the "background" (#22)

As an outdoor enthusiast, I use a Progressive Web App to record my adventures over several days via GPS, so that I can recall them, revisit them, or even share them. During an adventure, my GPS is also permanently shared with selected people via the PWA, so that in the event of an emergency, these people know my location immediately.

To ensure that my battery lasts as long as possible and that I have my hands free for climbing or similar, the smartphone screen is locked for long periods of time and it is in my pocket, but the GPS recording must work reliably in this state. Losing the GPS recording in this state would be fatal and permanently activating the screen is not an option. To achieve this, I can permanently unlock my location in the PWA, preferably directly in the PWA's own settings, or at least in the operating system settings, which also means in the background.
When I have finished my adventure, I revoke the app's location permission, preferably directly in the PWA's own settings, or in the operating system settings.

Because I want to use the app on different devices without having to install any platform-specific software, the Progressive Web App is, for me as a person without technical knowledge, the best solution with the smallest technical hurdle.

**Positive test case**
- I permanently activate location sharing for an installed PWA in the settings
- I activate GPS tracking in the PWA
- I put the smartphone into the locked state
- I go for a 30-minute walk
- I unlock the smartphone and can view the recorded, unbroken route in the PWA
- I withdraw location sharing from the PWA in the settings
- Activating GPS tracking is not possible, I am asked for permission
- Ideally, I have the choice between "allowing during use" or "permanently"

**Negative test case**
- I permanently activate location sharing for an installed PWA in the settings
- I activate GPS tracking in the PWA
- I start a walk with the active smartphone
- After 2 minutes, I lock the smartphone and continue my walk
- At the end, I unlock the smartphone and find that only the first 2 minutes were recorded and the rest of the route is missing since locking

-- 
GitHub Notification of comment by scovillo
Please view or discuss this issue at https://github.com/w3c/geolocation-sensor/issues/22#issuecomment-2344720173 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 11 September 2024 21:18:46 UTC