Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

geolocation doesn't work with Firefox

So, i use this code :

var options = {
  enableHighAccuracy: true,
  timeout: 2000,
  maximumAge: 100
  };

navigator.geolocation.getCurrentPosition(localizeMe, errorLocalize, options);

On the callback localizeMe, i do some success things, and errorLocalize show me an alert when this code doesn't work.

When i try this code on Chrome, it's ok, i haven't problem. But on firefox, i always have my alert error when i'm trying this code, the callback error is always call... Do you have any ideas ?

like image 819
Clément Andraud Avatar asked Oct 28 '13 10:10

Clément Andraud


People also ask

How do I enable geolocation in Firefox?

Click on the 'Permissions" tab and scroll down to "Access Your Location". Uncheck "Use Default" and check "Allow". Then close and restart Firefox.

Does Firefox block IP tracking?

Firefox Desktop and Firefox for Android include built-in tracking protection. In Private Browsing windows (tabs, in Firefox for Android), Firefox will block content loaded from domains that track users across sites.

Does Firefox track location?

If you allow location access, Firefox gathers information about nearby wireless access points and your computer's IP address. Firefox sends this information to the default geolocation service provider, Google Location Services, to get an estimate of your location.


1 Answers

geolocation has been broken on Firefox, on Linux and Mac, I believe, since v24.

There's an bug against Ubuntu here: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1231273

like image 108
auxbuss Avatar answered Sep 28 '22 20:09

auxbuss