[
https://issues.apache.org/jira/browse/CB-14167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16525928#comment-16525928
]
Sanjay Kumar commented on CB-14167:
---
[~jcesarmobile]
Code:
navigator.geolocation.watchPosition(
function(position) {
deviceCords = [position.coords.longitude,
position.coords.latitude];
Session.set('deviceLocation',deviceCords);
},
function(error) {
console.log('code: '+ error.code,'message: ' +
error.message);
},
{
enableHighAccuracy: true,
maximumAge: 0,
timeout: 1
}
);
Version:
cordova-plugin-geolocation@2.4.1
This issue is happening mainly on iPhone
> User's current location is not correct
> ---
>
> Key: CB-14167
> URL: https://issues.apache.org/jira/browse/CB-14167
> Project: Apache Cordova
> Issue Type: Bug
>Reporter: Sanjay Kumar
>Priority: Major
>
> We are using
> [https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-geolocation/]
> in our app. We are getting the user's current position using
> navigator.geolocation.getCurrentPosition and we are getting the correct
> location.
> Then we are using navigator.geolocation.watchPosition to get the user's
> updated location which is also working well mostly.
> Here is the issue - When the phone is not moving - we are getting different
> co-ordinates which are up to 500 meters away from the actual user location.
> If needed, I can share screenshots and code. Do let me know.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org