← Back to team overview

touch-packages team mailing list archive

[Bug 1488801] [NEW] PositionSource onPositionChanged event is kept being fired every 12 seconds, not respecting updateInterval (phone only)

 

Public bug reported:

Attributing to location-service as this only happens on the phone and
not on a wily desktop

1. starts the following snippets on the phone.
-> you can see that onPositionChanged is fired approximately every 12s, independant of the updateInterval you set (like 1000, 2000, 10 000 seconds…).
Note as well that the positionSource.position.coordinate may not even change (at least from console.log visible digits).
2. try the same on a wily desktop
-> the event is only fired at startup.


----

snippet:

import QtPositioning 5.2
import QtLocation 5.3

PositionSource {
    active: true
    updateInterval: 60000 // 1 mins
    onPositionChanged: {
        console.log("coordinates " + positionSource.position.coordinate);
    }
}

** Affects: location-service (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: devexp

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to location-service in
Ubuntu.
https://bugs.launchpad.net/bugs/1488801

Title:
  PositionSource onPositionChanged event is kept being fired every 12
  seconds, not respecting updateInterval (phone only)

Status in location-service package in Ubuntu:
  New

Bug description:
  Attributing to location-service as this only happens on the phone and
  not on a wily desktop

  1. starts the following snippets on the phone.
  -> you can see that onPositionChanged is fired approximately every 12s, independant of the updateInterval you set (like 1000, 2000, 10 000 seconds…).
  Note as well that the positionSource.position.coordinate may not even change (at least from console.log visible digits).
  2. try the same on a wily desktop
  -> the event is only fired at startup.

  
  ----

  snippet:

  import QtPositioning 5.2
  import QtLocation 5.3

  PositionSource {
      active: true
      updateInterval: 60000 // 1 mins
      onPositionChanged: {
          console.log("coordinates " + positionSource.position.coordinate);
      }
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/location-service/+bug/1488801/+subscriptions