- From: Philipp Serafin <phil127@gmail.com>
- Date: Sat, 24 Mar 2018 20:15:34 +0000
- To: Roger Hågensen <rh_whatwg@skuldwyrm.no>
- Cc: whatwg@lists.whatwg.org
If this problem is specific to the "track a route" use-case, and the use-case is sufficiently widespread, would a dedicated "route recording" API make sense? E.g., a web page could ask the browser to continously record location changes and - at some time at the browser's discretion - push a list of recorded changes to the page. This would allow the browser to record locations changes with reasonably accuracy *without* waking up service workers. It would also provide some hooks for privacy controls: A browser could show a status indicator whenever it's in "GPS recording" mode. It could also notify the user when it's about to push the recorded route to the page and possibly even show the route for confirmation. Roger Hågensen <rh_whatwg@skuldwyrm.no> schrieb am Sa., 24. März 2018, 19:49: > On 2018-03-19 00:25, Richard Maher wrote: > > FYI This question on StackOverflow has now had over 1000 views: - > > > https://stackoverflow.com/questions/44233409/background-geolocation-serviceworker-onmessage-event-order-when-web-app-regain > > > > Please explain why nothing is happening. > It has a accepted solution. > > But one key issue is that browers throttle down or even pause inactive > windows/background tabs. > Partly blame digital currency mining for this, blame the rest on bad > programmers running full tilt when they don't need to and DDOS trojans > for the rest. > > I haven't looked this up, but is there a way to ask the user for > permission to run as a background app without performance restrictions? > That is the only way I forsee this working across all browsers. > > > > > > -- > Unless specified otherwise, anything I write publicly is considered > Public Domain (CC0). My opinions are my own unless specified otherwise. > Roger Hågensen, > Freelancer, Norway. >
Received on Saturday, 24 March 2018 20:16:15 UTC