breautek commented on issue #224:
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/224#issuecomment-826847177


   >  have managed to get the timeouts to stop by changing 
self.locationManager.distanceFilter from = 5 to = kCLDistanceFilterNone;
   
   This means you aren't moving more than 5-8 meters (depending on location 
accuracy in your current area). iOS does battery optimisation by avoiding 
sending GPS events if there isn't any significant changes in geolocation. This 
is set to 5 by default in high accuracy mode. `kCLDistanceFilterNone` constant 
disables this so that you'll get GPS events regardless if the position has 
changed or not. It's not recommended by Apple to use this, but depending on 
your use case it may be necessary.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to