title: Error in Phonegap navigator.geolocation.getCurrentPosition
body: <p>When I try to get my geographical position in my HTML page I get the following error:
  Error code: 2
  Error message: The last location provider is no longer available
  here is my code:
      </p>
  
  <pre><code>// onSuccess Callback
  //  This method accepts a `Position` object, which contains
  //  the current GPS coordinates
  //
  var onSuccess = function(position) {
     };
  
  var HospitalsRecord = [];
  
  
  
  //onError Callback receives a PositionError object
  //
  function onError(error) {
     alert('code: '    + error.code    + '\n' +
           'message: ' + error.message + '\n');
  }
  
  // Cordova is ready
  //
  function onDeviceReady() {
      navigator.geolocation.getCurrentPosition(onSuccess, onError, { maximumAge: Infinity, timeout: 15000, enableHighAccuracy: true });
  
  }
  
  // Wait for Cordova to load
  //
  document.addEventListener("deviceready", onDeviceReady, false);
  
  
  &lt;/script&gt;
  </code></pre>
  
  <p>why is it happening?</p>
  
  <p>thanks in advance</p>
  
  <p>Kobi</p>