title: Why does geolocation not work on mobile browsers?
body: <p>I am trying to get the location of the user with HTML5 <code>geolocation</code>.
  On Desktop it works great, but on all my mobile devices (Samsung note, Samsung galaxy S4 And Iphone 6) its not working and not showing the <code>error</code> object.</p>
  
  <p>this is my code:</p>
  
  <pre><code>function showPosition(position) {
      var coor = position.coords.longitude+", "+position.coords.latitude;
      alert(coor);
  }
  function errorPosition(error) {
      alert(error);
  }
  function toggleGeolocation() {
      navigator.geolocation.watchPosition(showPosition,errorPosition);
  }
  </code></pre>
  
  <p>It asks to get permission for geolocation and I click allow (gps is working). What could be the problem?</p>
  
  <p>I am using Google Chrome on all devices.</p>