title: Geolocation API is available and enabled but does not give the coordinates
body: <p>I'm creating an app where i need to get access to user's coordinates to display their location on the map. I'm using react for that matter and the problem is the success callback never gets called and I can't get access to the coordinates.
  does anyone know what might cause this behavior?
  here's my code.</p>
  <pre><code>const Routing = (props) =&gt; {
  
  const success = (position) =&gt; {
    console.log(position);
  };
  
  useEffect(() =&gt; {
    const geo = navigator.geolocation;
    if (!geo) {
      return;
    }
    geo.getCurrentPosition(success);
  }, []);
  
  return (
    &lt;div className=&quot;map&quot;&gt;
      &lt;MapContainer /&gt;
    &lt;/div&gt;
  );
  };
  </code></pre>
  <p>thanks.</p>