title: navigator.geolocation.getCurrentPosition always getting timeout in Android until GPS/Location is OFF
body: <pre><code>app.controller('dashboard', function($scope){
      $scope.getPosition = function(position){
          $scope.acc = position.coords;
          $scope.lat = position.coords.latitude;
          $scope.lng = position.coords.longitude;
          $scope.$apply();
      };
      $scope.getPositionErr = function(error){
          alert('code: '    + error.code    + '\n' +
                    'message: ' + error.message + '\n');
      };
      navigator.geolocation.getCurrentPosition($scope.getPosition, $scope.getPositionErr, {maximumAge: 0, timeout: 6000, enableHighAccuracy:false});
  });
  </code></pre>
  
  <p>I am using Angular JS and Cordova for an Android app.
  This code is working fine on desktop but not on Nexus 4 with Lollipop.
  Also controller code is executing after deviceready as per requirement from Cordova</p>
  
  <p>I have tried</p>
  
  <ul>
  <li>Setting HighAccuracy to false</li>
  <li>Removing geolocation plugin so that it uses default location from Wifi</li>
  <li>Device reboot</li>
  <li>Clearing browser cache</li>
  <li>Airplane mode on/off</li>
  <li>Wifi on/off</li>
  <li>Mobile data on/off</li>
  </ul>
  
  <p>But I am unable to get lat, long and geolocation always gets timeout.</p>
  
  <p>It only works when I enabled Location/GPS from setting. After enabling it code is working as expected.</p>