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


   > I've recently upgraded Ionic from 2 to 5 and for some reason this plugin 
always results in a GPS time out using watch position on iOS, however, it works 
without issue on Android.
   
   One major philosophy difference between iOS and Android is iOS will try to 
be smart about battery life consumption by not providing GPS updates if the 
phone isn't making any "significant" distance change. I think by default, this 
is ~5 meters. I have a feeling you might be hitting into this.
   
   Additionally, in my experience, iOS devices is more likely to not provide 
any GPS updates at all in certain environmental conditions, such as being in a 
concrete building, whereas Android might (although inaccurate) GPS updates in 
the same environment. If I wanted to test iOS with real GPS data, I have to 
physically go outside with my iOS device(s).
   
   You can **try** using my fork at 
https://github.com/totalpave/cordova-plugin-geolocation.git#totalpave/v1.0.0 
(based off of Apache version of `v4.0.1` The most significant change in the 
fork is to disable the distance filter via 
https://github.com/totalpave/cordova-plugin-geolocation/commit/a9233d8838c1cc14d955e6654fa11660a4557901


----------------------------------------------------------------
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