navigator.geolocation.getCurrentPosition do not work in Firefox 30.0

user3244721 picture user3244721 · Jun 23, 2014 · Viewed 7.3k times · Source

I am using Firefox 30.0(latest FF),navigator.geolocation.getCurrentPosition is working in Chrome but not in this version of FF.

Here is my code

    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(GEOprocess, GEOdeclined);
    }else{
      alert('Your browser sucks. Upgrade it.');
    }
function GEOdeclined(error) {
 alert('Error: ' +error.message);
}
function GEOprocess(position) {
alert('it works');
}

I am getting this error

Error: Unknown error acquiring position

Note: It stoped working only when i upgrade my FF to 30.0

Answer

Vasyl Gutnyk picture Vasyl Gutnyk · Jul 13, 2016

Now I'm using 47 Mozilla. I have tried everything, but all time this problem. BUT then I open about:config in my address bar, go geo.wifi.uri and changed its value to "https://location.services.mozilla.com/v1/geolocate?key=test". works!