On Fri, 2016-07-15 at 14:00 +0200, Tomas Öqvist wrote: > How much of the location problem is actually software related? I > used a Bq Aquaris E4.5 for over a year and I agree that the location > service was useless 99% of the time. I am now using a Pro 5, and the > location service on this phone is working much better, i.e. it is > usually able to get a correct location within seconds. It may require > a couple of updates in the Today scope before finding the correct > city, but with uNav and Here Maps it works more or less as expected.
Agreed, the location service works great for me under uNav. But, for the Weather app, it requests a location and gets an ancient cached location. If I restart the app a few minutes later, it seems to update to the correct location. So, it seems to me, that the call triggers it to find a new location, but still hands out the stale one. I can only assume the Today scope polls for the location multiple times, which shouldn't be necessary. As per that documentation, I expect as an app developer, to be able to request an up-to-date location one time, and not receive an old stale location. If the only way to get an up-to-date location is to poll multiple times, then that is just a hacky solution that many developers are going to get wrong, and will keep waking up the location service for no reason when a new location is not actually needed.
signature.asc
Description: This is a digitally signed message part
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

