You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/26 13:44:19 UTC

[GitHub] [cordova-plugin-geolocation] breautek commented on issue #224: iOS 14: watchPosition stops working when the App is suspended and reactivated

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org