I'm using geolocation in my Ionic app, and I would like to use the method watchposition to check whenever (for example) the user turns off GPS while watching his position to catch the error and show a message on screen.
Following this guide I'm doing this:
let watch = this.geolocation.watchPosition();
watch.subscribe((data)=>{
})
but I can't find a method to catch errors while being subscribed to data. Is there a way to achieve this?