Closed Bug 847869 Opened 13 years ago Closed 13 years ago

Geolocation doesn't work with permissions set to Ask

Categories

(Core :: DOM: Geolocation, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robert, Unassigned)

References

Details

(Whiteboard: [apps watch list])

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
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.
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.
bug 840732 and bug 841360 are examples, I think.
Thanks. I'll see what we can do, but clearly a lot of people have problems with geolocation on the devices.
Whiteboard: [apps watch list]
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
Closed: 13 years ago
Depends on: 871072
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.