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 ?
Click on the 'Permissions" tab and scroll down to "Access Your Location". Uncheck "Use Default" and check "Allow". Then close and restart Firefox.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With