Geolocation Watch Handling Errors

With the caveats that I have zero experience actually working with this, and real-world implementations don’t always match even normative specs, this looks to be the definitive word on how watchPosition is supposed to behave, and if I’m reading it correctly, you should be able to do whatever you want with the error, in terms of logging or reporting it, but you should be able to just ignore the error also if you wish.

The only error condition that terminates the process (and would therefore necessitate calling watchPosition again in order to receive any further updates) appears to be PERMISSION_DENIED. Any other error, watchPosition is mandated to soldier through until you call cancelWatch.

1 Like