I would like to stop my app from using the geolocation watch event after I press a button. This is the code that i took from Phonegap. I put it in a javascript event when a button is pushed but it doesnt seem to be working.
precode
var watchID = navigator.geolocation.watchPosition;
navigator.geolocation.clearWatch(watchID);
/code/pre