Om de ûnderfining foar jo te ferbetterjen is tydlik de funksjonaliteit dan dizze website troch ûnderhâldswurk beheind. Wannear in artikel jo probleem net oplost en jo in fraach stelle wolle, kin ús stipemienskip jo helpe yn @FirefoxSupport op Twitter en /r/firefox op Reddit.

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Geolocation not working

  • 3 antwurd
  • 1 hat dit probleem
  • 1 werjefte
  • Lêste antwurd fan cor-el

more options

Hi,

Geolocation doesn't seem to work on Firefox for me. I can't use Google Maps or other location-based services even after giving permissions.

I found this post: https://support.mozilla.org/en-US/questions/1282004#answer-1297537

I got the following results:

https://browserleaks.com/geo - I get "POSITION_UNAVAILABLE" https://bestvpn.org/html5demos/geo/ - "failed" https://www.iplocation.net/find-ip-address - correctly gives New York, New York, the location of my VPN's proxy

I also copied the following from 'about:config':

Application Basics


Name: Firefox Version: 78.0.1 Build ID: 20200701193652 Distribution ID: archlinux User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 OS: Linux 5.7.7-arch1-1 Multiprocess Windows: 1/1 Enabled by default Remote Processes: 8 Enterprise Policies: Inactive Google Location Service Key: Found Google Safebrowsing Key: Found Mozilla Location Service Key: Found Safe Mode: false

Thanks in advance for your help!

Hi, Geolocation doesn't seem to work on Firefox for me. I can't use Google Maps or other location-based services even after giving permissions. I found this post: https://support.mozilla.org/en-US/questions/1282004#answer-1297537 I got the following results: https://browserleaks.com/geo - I get "POSITION_UNAVAILABLE" https://bestvpn.org/html5demos/geo/ - "failed" https://www.iplocation.net/find-ip-address - correctly gives New York, New York, the location of my VPN's proxy I also copied the following from 'about:config': Application Basics ------------------ Name: Firefox Version: 78.0.1 Build ID: 20200701193652 Distribution ID: archlinux User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 OS: Linux 5.7.7-arch1-1 Multiprocess Windows: 1/1 Enabled by default Remote Processes: 8 Enterprise Policies: Inactive Google Location Service Key: Found Google Safebrowsing Key: Found Mozilla Location Service Key: Found Safe Mode: false Thanks in advance for your help!

Keazen oplossing

hello

mostlyaspambox...


follow the steps:

I looked into this a little more, and it seems that if Firefox cannot retrieve your nearby wi-fi hotspot names, it should at least send your IP address to get a more approximate location. (Location-Aware Browsing FAQ) The address of this service is listed in about:config (with a missing parameter filled in by the code). You can check here:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste geo and pause while the list is filtered

(3) If the geo.wifi.uri preference is bolded and "modified" or "user set", you can right-click > Reset it to the default (mine is https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%)

(4) As an alternative to the default value for geo.wifi.url you can use https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY% (according to Geolocation is still not working !)

If Firefox sends anything to the geolocation service, the address should appear in the Browser Console (you may need to click the "Net" button to un-filter request URLs). For example:

Default address: 08:39:50.874 POST XHR https://www.googleapis.com/geolocation/v1/geolocate [HTTP/2.0 200 OK 343ms]

Alternate address: 08:49:21.994 POST XHR https://location.services.mozilla.com/v1/geolocate [HTTP/1.1 200 OK 920ms]

Tell me its help

thank you!

Dit antwurd yn kontekst lêze 👍 1

Alle antwurden (3)

more options

Keazen oplossing

hello

mostlyaspambox...


follow the steps:

I looked into this a little more, and it seems that if Firefox cannot retrieve your nearby wi-fi hotspot names, it should at least send your IP address to get a more approximate location. (Location-Aware Browsing FAQ) The address of this service is listed in about:config (with a missing parameter filled in by the code). You can check here:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste geo and pause while the list is filtered

(3) If the geo.wifi.uri preference is bolded and "modified" or "user set", you can right-click > Reset it to the default (mine is https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%)

(4) As an alternative to the default value for geo.wifi.url you can use https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY% (according to Geolocation is still not working !)

If Firefox sends anything to the geolocation service, the address should appear in the Browser Console (you may need to click the "Net" button to un-filter request URLs). For example:

Default address: 08:39:50.874 POST XHR https://www.googleapis.com/geolocation/v1/geolocate [HTTP/2.0 200 OK 343ms]

Alternate address: 08:49:21.994 POST XHR https://location.services.mozilla.com/v1/geolocate [HTTP/1.1 200 OK 920ms]

Tell me its help

thank you!

more options

Thanks! Changing to the location.services.mozilla.com URL worked for me. I would just like to note also for anyone else who reads this, the preference I changed was 'geo.provider.network.url'. I didn't have any value for 'geo.wifi.url'.

more options

Note that the MOZILLA_API_KEY isn't included in third-party builds like used when you install Firefox from the repositories.
You can check this via the "Help -> Troubleshooting Information" (about:support) page.
You would have to use Firefox from the Mozilla server.