Getting geolocation by naviagtor (JS)
-
A Former User last edited by
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 'https://www.googleapis.com/' : No response received."}navigator.geolocation.getCurrentPosition(function (cb) { console.log(cb);}, err => {console.log(err)},{
enableHighAccuracy: true,
timeout: 27000,
maximumAge: 30000
}) -
burnout426 Volunteer last edited by
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
?