breautek commented on issue #221: URL: https://github.com/apache/cordova-plugin-geolocation/issues/221#issuecomment-775956471
> It seems to get the position fine twice and then on the third attempt, hit a time out. This is consistent behaviour for iOS, for when the device cannot get a reliable fix to the geolocation services. When you subscribe to the GPS listener, iOS will provide you with a GPS event immediately, regardless of how accurate or stale that GPS point might be. These GPS points are very likely to be not usable for anything that requires high precision. > It also worked perfectly fine in Ionic 2 so why it is not working in 5 is a mystery to me. I can't really comment on anything about Ionic. I wouldn't think this would be in anyway related but perhaps ionic is overriding some behaviour. I would suggest ruling out any framework interference by creating a dummy app that is just simply Cordova and this plugin to see if you see a difference in behaviour. This doesn't really seem to be a bug though and more of an environmental issue, which is somewhat common for GPS applications, so I'll be closing this ticket. With that being said, I'll add a few more tips, ensure that the device has A-GPS features enabled (such as using Cell towers, wifi, networks, bluetooth, etc). Relying only on GPS satellites can take a significant amount of time to obtain fixes to the satellites. It's not abnormal to take > 15 minutes on cold boots of the GPS chip. I've already summarised a lot of my blog post here, but more in depth information can be found [here](https://breautek.com/articles/geolocation-accuracy.html). I somewhat recall iOS forcing these features to be always enabled when Location Services are enabled but not 100% sure so worth a check. Lastly, a more appropriate place for seeking support would be the Cordova [Slack](http://slack.cordova.io/) community. If you need further assistance, you may have better luck asking there. ---------------------------------------------------------------- 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]
