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 2020/09/29 16:09:10 UTC
[GitHub] [cordova-plugin-geolocation] jpangburn commented on issue #151: iOS watchPosition problem
jpangburn commented on issue #151:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/151#issuecomment-700809495
I can confirm @breautek 's comment. The problem you are likely experiencing is the distanceFilter. If you move less than 5 meters, you won't get an update. While this is probably great for driving apps, for apps on foot where you're trying to store a reasonably precise point it won't really work for you. I imagine the people reporting this are not moving far when reporting "it stops after 2-5 seconds", this is the time when the GPS is locating you and precision is increasing. Once it has good precision, you won't get more updates until you move more than 5 meters.
Fixing the line as he says resolves the problem. You can put `0` or `kCLDistanceFilterNone`. You'll get updates, in my testing, if the device moves even half a foot.
----------------------------------------------------------------
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