I have a tripStatus state, and upon receiving the "finish-trip" state, I invoke navigator.stopGuidance(). I expect this action to also remove the notification, but it is not happening as anticipated. I suspect that the service is still running in the background and consuming battery.
Could you please advise on how to properly remove the notification in this scenario?
I have a
tripStatus
state, and upon receiving the "finish-trip" state, I invokenavigator.stopGuidance()
. I expect this action to also remove the notification, but it is not happening as anticipated. I suspect that the service is still running in the background and consuming battery.Could you please advise on how to properly remove the notification in this scenario?