Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

Getting geolocation by naviagtor (JS)

  • Hi! In opera browser i try to get the user location but i don't get any response. The error is
    GeolocationPositionError {code: 2, message: "Network location provider at '' : No response received."}

    navigator.geolocation.getCurrentPosition(function (cb) { console.log(cb);}, err => {console.log(err)},{
    enableHighAccuracy: true,
    timeout: 27000,
    maximumAge: 30000

  • Does Opera prompt you to allow GPS for the page and do you click "allow"?

    Is the domain listed as allowed in opera://settings/content/location?