I just had a chat with Thomas, and it appears that the
GeoPositionInfoSource as implemented in qtubuntu-sensors always returns
the last known position first on purpose, before starting to request
updates. This is similar to what the geoclue plugin does.

However it’s not clear that this should be happening:
QGeoPositionInfoSource has a lastKnownPosition() method¹ that allows
clients to query the last know position explicitly, so I don’t think a
call to startUpdates() should return that last known position first.
Instead clients should be calling lastKnownPosition() themselves to get
a first approximation, and then call startUpdates() to get an updated
position (and thus expect that the first response will be with an
accurate position).


¹ https://doc.qt.io/qt-5/qgeopositioninfosource.html#lastKnownPosition

** Changed in: location-service (Ubuntu)
     Assignee: (unassigned) => Thomas Voß (thomas-voss)

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

Title:
  getcurrentPosition in oxide does not cause a wake up of the GPS

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to