You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The onSuccess callback following step 1 calls clearWatch
The win callback following step 2 restarts the timeout
The timeout is hit because the geolocation was stopped in step 3
This was unexpected behaviour which I only figured out by looking at the source code of the plugin. I could easily resolve the problem by calling clearWatch a second time but it would be nicer for the plugin to handle this.
The text was updated successfully, but these errors were encountered:
iOS 11.4.1
I experience a timeout error after calling
watchPosition
and then callingclearWatch
in the first success callback.Example code would be some thing like
What I believe is happening is
watchPosition
callsgeolocation.getCurrentPosition
followed byexec(win, fail, 'Geolocation', 'addWatch', [id, options.enableHighAccuracy]);
onSuccess
callback following step 1 callsclearWatch
win
callback following step 2 restarts the timeoutThis was unexpected behaviour which I only figured out by looking at the source code of the plugin. I could easily resolve the problem by calling clearWatch a second time but it would be nicer for the plugin to handle this.
The text was updated successfully, but these errors were encountered: