Open alessandro-bottamedi opened 3 years ago
There's no subscription related changes in 5.1.1, just a new property was added for accuracy control. It's probably some kind of bug in app side as far as I can tell. The code you provided looks ok, so please check the other parts of the code.
Hi @alessandro-bottamedi ,
Had a similar issue, the problem for me was that watchId.current
can be equal to 0
and thus would be falsy
Try this....
console.log('stop')
try { store.dispatch(setMountTimer(false)) // Geolocation.clearWatch(store.getState().app.watchId); Geolocation.stopObserving() showToast('Navigation was stopped','success') } catch (error) { console.log(error) }
Hi, on iOS 14 I'm listening to the appstate to stop location if the app goes in the background. But it seems that with version 5.1.1 watch location remains active despite calling clearWatch (the blue location indicator is on in the background). If I call stopObserving the indicator disappears but I get the warning (Called stopObserving with existing subscriptions). With version 5.0.0 everything worked correctly.
Here my code:
What i'm doing wrong?