Geolocation doesn't work with permissions set to Ask

RESOLVED FIXED

Status

()

RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: robert, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [apps watch list])

(Reporter)

Description

6 years ago
I'm testing geolocation in Firefox OS (on an Unagi device) and geolocation doesn't work. I get the dialog asking to access it, but after that it seems to time out. No values, no error callback.

However, if I go into Settings > App permissions and explicitly set it to Grant (instead of Ask) then it works right away.

Test code:

https://github.com/robnyman/Firefox-OS-Boilerplate-App
https://github.com/robnyman/Firefox-OS-Boilerplate-App/blob/gh-pages/js/webapp.js#L308
https://github.com/robnyman/Firefox-OS-Boilerplate-App/blob/gh-pages/manifest.webapp#L26

Comment 1

6 years ago
I tested this in a desktop build with multiple processes turned on and allowing the geolocation access cause the geolocation information to show up immediately. This suggests to me that this is a continuation of the awful GPS problems on devices, and not with the actual geolocation code.
(Reporter)

Comment 2

6 years ago
Yes, it seems to be device-specific, but I can't tell whether it's B2G code or hardware problems (especially since it works when the permission is set to Grant).

Also, do you have any other references/bugs on GPS problems in general?
Then we can help push from Developer Engagement to get some more focus on those.

Comment 3

6 years ago
bug 840732 and bug 841360 are examples, I think.
(Reporter)

Comment 4

6 years ago
Thanks. I'll see what we can do, but clearly a lot of people have problems with geolocation on the devices.

Updated

6 years ago
Whiteboard: [apps watch list]

Comment 5

5 years ago
Agreement with AGPS (Assisted GPS provider is pending. Once AGPS is implemented, this problem is expected to be resolved.
This was fixed by bug 871072.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Depends on: 871072
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.