New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 770250 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Feature



Sign in to add a comment

Enable background geolocation in service worker for PWAs with a json manifest

Reported by clay.gul...@healthelt.com, Sep 29 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Steps to reproduce the problem:
This is currently an unsupported feature

What is the expected behavior?
With the new APK approach to "Add to home screen" applications, there's an opportunity to have parity with native applications with regards to background geolocation in service workers, possibly using the web budget api. The permission model of PWA's with APKs is such that many of the privacy concerns around background geolocation for the web in general can be mitigated with "Add to home screen" PWAs and an expanded json manifest with a user prompt.

What went wrong?
For any application requiring background geolocation, such as fleet and asset management, field workers, disaster relief, etc... it is currently impossible to implement as a PWA. An expansion of permissions (via an addition to the json manifest and a user prompt when installing) for background geolocation would bring PWAs closer to parity with native apps.

Did this work before? N/A 

Does this work in other browsers? No
 No browser is currently supporting this feature

Chrome version: 61.0.3163.100  Channel: stable
OS Version: 10.0
Flash Version:
 
Cc: hdodda@chromium.org
Labels: -Type-Bug M-63 Needs-Triage-M61 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)
This seeems to be feature request , hence ,marking it as untraiged for further inputs on this.

Thanks!
Status: WontFix (was: Untriaged)
The feature needs a spec first, so I'm WontFixing this as a Chromium issue (see also  issue 383125  and  issue 506435  which link to some spec discussions).
This is a feature request for sure, sorry didn't mean to enter it as a bug. I assumed it would be WontFix due to lack of spec, but I wanted a place to at least initiate the discussion, because I think the new APK/JSON Manifest approach to "Add to home screen" changes the discussion about background geolocation. I'll work on a strawman spec for JSON manifest and link it here.
Please see the ServiceWorker.TravelManager solution that leverages existing ServiceWorker extensibility here: - https://github.com/RichardMaher/Brotkrumen

Sign in to add a comment