googlemaps-samples / android-navigation-samples

Apache License 2.0
6 stars 7 forks source link

After stopGuidance called, notification is not dismissed #14

Closed abualgait closed 2 months ago

abualgait commented 2 months ago

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?

Screenshot
abualgait commented 2 months ago

It was because of not removing the location listener from the roadsnapped location provider.