Enable background geolocation in service worker for PWAs with a json manifest
Reported by
clay.gul...@healthelt.com,
Sep 29 2017
|
||
Issue descriptionUserAgent: 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:
,
Oct 3 2017
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).
,
Oct 4 2017
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.
,
Nov 8
Please see the ServiceWorker.TravelManager solution that leverages existing ServiceWorker extensibility here: - https://github.com/RichardMaher/Brotkrumen |
||
►
Sign in to add a comment |
||
Comment 1 by hdodda@chromium.org
, Oct 3 2017Labels: -Type-Bug M-63 Needs-Triage-M61 OS-Linux OS-Mac Type-Feature
Status: Untriaged (was: Unconfirmed)