Yes. We should definitely make the default behavior that background pages automatically stop receiving GPS and orientation data.
But then allow such pages to explicitly opt in to continue receiving such data in the background. Possibly by using something like [1] to allow the page to grab a "geolocation"/"orientation" wakelock. [1] http://w3c.github.io/wake-lock/ / Jonas On Tue, Jul 14, 2015 at 10:07 AM, Garvan Keeley <gkee...@mozilla.com> wrote: > On Android and iOS, getting GPS in the background is not a default behaviour > of the APIs ( a backgrounded app will stop getting the GPS). On Android, to > do this you must explicitly write your GPS request code as a service, and on > iOS, I won't detail the steps, but they are onerous. > > It is a problem that the default behaviour of the web api is the opposite on > FxOS. And on Fennec, backgrounding Fennec while a watch request is running > will continue using location. Chrome will not do that. > > Web developers may want to write web apps that continue to track locations > when the app is backgrounded as a feature of the app, but this is an > exceptional case. The default is that they don't want to do this, and writing > extra code for the de-facto default behaviour seems wrong. > > Cross-posting to dev-geolocation, I am going to move the discussion there as > it goes beyond foxfooding. > >> On Jul 10, 2015, at 8:26 PM, Michal Purzynski <mic...@mozilla.com> wrote: >> >> How about >> >> Background Web pages cannot use the GPS constantly >> >> Background of installed apps can but if they abuse the privilege user is >> notified. She can choose to not be notified about this particular app in the >> future. >> >> On Jul 11, 2015 2:04 AM, "Thomas Daede" <tda...@mozilla.com> wrote: >> On 07/10/2015 04:58 PM, Eitan Isaacson wrote: >> >> > 2. Installed apps can be trusted to pause/resume themselves. >> >> Except that the whole reason this thread was started was because an >> installed app was not pausing itself correctly. So some mitigation would >> be nice, better than seeing a tiny droplet icon in your status bar, >> opening the app switcher, and closing every app until you see the icon >> go away. > > -- > You received this message because you are subscribed to the Google Groups > "foxfood-feedback" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to foxfood-feedback+unsubscr...@mozilla.com. > To post to this group, send email to foxfood-feedb...@mozilla.com. > To view this discussion on the web visit > https://groups.google.com/a/mozilla.com/d/msgid/foxfood-feedback/47303EA0-8A56-4991-8B23-B3922F16B417%40mozilla.com. _______________________________________________ dev-geolocation mailing list dev-geolocation@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-geolocation