breautek commented on issue #151: iOS watchPosition problem 
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/151#issuecomment-570800887
 
 
   The described behaviour really sounds like an environmental issue.
   
   But here is a couple more tips...
   
   I don't access to an iOS device at this moment, and I'm not very familiar 
with the iOS location settings, but ensure that high accuracy is enabled, or 
that wifi/cell towers for location tracking is enabled. Anything that is "GPS 
Only" will take a very long time for devices to obtain a satellite fix 
(Generally this takes 10-15 minutes from a cold start). This is unfortunately a 
phone setting, not an app setting, so if this solves the problem, then there is 
very little you can do other than give appropriate error feedback to the user.
   
   Another thing you can try is to remove the distance filter. I would 
recommend doing this only to ensure that you're not getting gps points filtered 
while debugging. It isn't recommended to keep it like this for most 
applications because it will cause battery drain, but might aid in debugging.
   
   
https://github.com/apache/cordova-plugin-geolocation/blob/6570cf9fd2c546620f6aa8b2a07cf0b8b073a95c/src/ios/CDVLocation.m#L144
   
   You can temporarily modify this line to ensure that GPS isn't being filtered 
by distance travelled. Set `distanceFilter` to `kCLDistanceFilterNone` to 
disable the filter, so events will be triggered even if the user hasn't moved a 
significant distance.
   
   Lastly, if the issue persists, I would recommend creating a basic barebones 
sample app with the minimum requirements to reproduce the issue. So for 
example, a pure cordova with only the `cordova-plugin-geolocation` installed, 
but not ionic, or any other framework. This is to help isolate the issue away 
from frameworks and prove that the issue lies inside Cordova.

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


With regards,
Apache Git Services

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

Reply via email to