title: Phonegap geolocation sometimes not working on android
body: <p>I have using cordova v3.4.1 to build android and ios app, on ios geolocation function is returning very quickly and works fine always,but on android, sometimes it not working.</p>
  
  <p>The strange thing is after I reboot my android phone,it works fine. In more than a few hours geolocation gets the postion very quickly both in wifi and 3G.</p>
  
  <p>But after serval hours, I open the app again, the geolocation can not work.Sometimes when I  outside, it can get postion with gps satellite,but very slow,often occur timeout error.</p>
  
  <p>I try to remove the app and reinstall it again,but the problem still exist,unless reboot my android phone.when I reboot my android phone,geolocation function is working fine again in future a few hours.</p>
  
  <p>I have test serval android`s phone such as samsang note2, galaxy4 etc, they all have the same problem.when I reboot it, they can get location very quicly.</p>
  
  <p>This problem has troubled me for a long time, so somebody help me?</p>
  
  <p>here is my code below:</p>
  
  <pre><code>navigator.geolocation.getCurrentPosition(function(pos){
                  cb(null,pos)
              },function(errMsg){
      navigator.geolocation.getCurrentPosition(function(pos){  
              cb(null,pos)
      },function(errMsg){
      cb(errMsg)
      }, {
      enableHighAccuracy: true,
      timeout: 60*1000*2,
      maximumAge: 1000*60*10
     });
  }, {
      enableHighAccuracy: false,
      timeout: 10*1000,
      maximumAge: 1000*60*10
  });
  </code></pre>
  
  <p>my config.xml:</p>
  
  <pre><code>&lt;feature name="Geolocation"&gt;
      &lt;param name="android-package" value="org.apache.cordova.geolocation.GeoBroker" /&gt;
  &lt;/feature&gt;
  </code></pre>