Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

binjaja

macrumors newbie
Original poster
Nov 13, 2008
10
0
I am using watchPosition inside of UIWebview to track a users position as follows:

watchId = navigator.geolocation.watchPosition(handle_geolocation_query,handle_errors,{enableHighAccuracy:true});



The callback function handle_geolocation_query is being called continuously, every few seconds, even though the users position doesn’t change at all. Isn’t it only supposed to be called if the users position changes?

I also tried the above without the enableHighAccuracy and saw the same results.
 
GPS coordinates change, slightly, even when stationary. Do you see changes in position.coords.latitude and position.coords.longitude?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.