title: Cordova geolocation plugin getCurrentPosition deprecated
body: <p>I have an ionic app that is trying to use geolocation exactly as shown in the docs. </p>
  
  <pre><code>var posOptions = {timeout: 10000, enableHighAccuracy: true};
  
  $cordovaGeolocation.getCurrentPosition(posOptions)
    .then(function (position) {
      //  do something
    }, function(err) {
      console.log(err);
      // error
    });
  </code></pre>
  
  <p>But now it has stopped working and in the console gives me this warning. </p>
  
  <blockquote>
    <p>getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See <a href="https://goo.gl/rStTGz" rel="nofollow">https://goo.gl/rStTGz</a> for more details.</p>
  </blockquote>
  
  <p>This seems like a huge change to the w3c spec I am just surprised there is not a lot of documentation regarding it. Can anyone tell me what I am missing here. </p>
  
  <p>The app is running on phones so it's listening on localhost naturally. It is talking to the server over http not https but I don't see why that would affect getting geo-coordinates </p>
  
  <p>I am testing the app on the browser and as a cordova app on an ios device. </p>