title: navigator.geolocation.getCurrentPosition return null
body: <p>I have a problem about the geolocation cordova. I am currently developing an application that uses geolocation phone, but geolocation function will always in the error function and when I log on error I have this:</p>
  
  <pre><code>PositionError {code: null, message: ""}
  </code></pre>
  
  <p>Here is my function:</p>
  
  <pre><code>var getGeoLocation = function() {
                  if (typeof(navigator.geolocation) != 'undefined') {
                      try{
                          navigator.geolocation.getCurrentPosition(function(position) {
                              var lat = position.coords.latitude;
                              var lng = position.coords.longitude;
                              alert(lat + "/" + lng);    
                          },function(err) {
                              console.log(err);    
                          });
                      }
                      catch(e){
                          alert(e);
                      }
                  }
              }
              getGeoLocation();
  </code></pre>
  
  <p>I'm on IntelXDK with version 4.0 of cordova. The org.apache.cordova.geolocation plugin is installed.
  I looked all over the internet before posting the question but I have found absolutely nothing :/</p>
  
  <p>If anyone know the reason for the bug I would be very grateful.</p>
  
  <p>Thanks,</p>