getcurrentPosition in oxide does not cause a wake up of the GPS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
Unassigned | ||
Oxide |
New
|
Undecided
|
Unassigned | ||
webapps-sprint |
New
|
Undecided
|
Alberto Mardegan | ||
location-service (Ubuntu) |
Fix Released
|
Undecided
|
Thomas Voß |
Bug Description
A browser based application that wants to use position can call getCurrentPosition
https:/
or watchPosition
https:/
maps (such as google maps) and navigation applications will typically use watchPosition which will cause location services to turn on the GPS chip and get a new location for the device.
non-map applications that just want location aware context for things such as weather or local stores e.g. https:/
Ubuntu Touch returns the last known position from the cache when getCurrentPosition is called, and then fails to turn on the GPS. It should block until it has a decent position and return good data to the success callback. It certainly shouldn't return a bad position and then fail to make an effort to get a good position.
The result of this bug is that you can go to a location aware web page, it will think you are somewhere else entirely, and refreshing will not improve the situation, you have to open a mapping application that uses watchPosition and wait for a fix to be obtained before going back to your location aware web page and refreshing to get good data.
Related branches
- Thomas Voß (community): Approve
-
Diff: 143 lines (+1/-123)2 files modifiedsrc/location_service/com/ubuntu/location/service/implementation.cpp (+1/-19)
tests/acceptance_tests.cpp (+0/-104)
affects: | webbrowser-app (Ubuntu) → oxide |
Changed in webapps-sprint: | |
assignee: | nobody → Alberto Mardegan (mardy) |
milestone: | none → sprint-25 |
Changed in canonical-devices-system-image: | |
status: | New → Fix Committed |
milestone: | none → 13 |
importance: | Undecided → Medium |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
another site to test this on is https:/ /www.where- am-i.net/