← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1592098] [NEW] GPS stops with "maximumAge: 0" in HTML5 geolocation

 

Public bug reported:

Hi!

If I use this:
	navigator.geolocation.watchPosition(
	function (pos) {
		console.log('new pos');
	},
	function (error) {
		console.log(error.code == 1);
	},
	{
		enableHighAccuracy: true,
		maximumAge: 0
	}

The GPS will not give more new positions after X kilometers (so random),
because of the "maximumAge" parameter (I put 0 because I don't want
older positions).

We see the behavior in the current version of uNav (0.59). After remove
that command, the GPS never stops.

I think it could be from oxide, because there isn't dumps in the log and
if I kill the app and launch again, the GPS works again.

Thanks in advance!

** Affects: oxide
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1592098

Title:
  GPS stops with "maximumAge: 0" in HTML5 geolocation

Status in Oxide:
  New

Bug description:
  Hi!

  If I use this:
  	navigator.geolocation.watchPosition(
  	function (pos) {
  		console.log('new pos');
  	},
  	function (error) {
  		console.log(error.code == 1);
  	},
  	{
  		enableHighAccuracy: true,
  		maximumAge: 0
  	}

  The GPS will not give more new positions after X kilometers (so
  random), because of the "maximumAge" parameter (I put 0 because I
  don't want older positions).

  We see the behavior in the current version of uNav (0.59). After
  remove that command, the GPS never stops.

  I think it could be from oxide, because there isn't dumps in the log
  and if I kill the app and launch again, the GPS works again.

  Thanks in advance!

To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1592098/+subscriptions