nativescript-geolocation
nativescript-geolocation copied to clipboard
watchLocation errorCallback not being used
In geolocation.js, line 150 the value of the watchLocation error callback is assigned to a var but then is never used. Im not sure if the watchLocation errorCallback is being call
Hi @Faguaz, thanks for reporting! Indeed, in Android, the errorCallback
of the watchLocation()
method seems to never be called (see this line).
It would be best to research if errors in watching location in Android can occur and call this callback if such is caught. Otherwise, the declaration
const zonedErrorCallback = zonedCallback(errorCallback);
... can be removed. We love pull requests, so if you have any ideas regarding this, feel free to contribute (make sure you assign this issue to yourself in this case)