App closes when clicking on stop navigation button (Using embedded navigation)
When using embedded navigation and clicking on the close navigation button on the bottom bar ('X'), the app closes. This seems like a known issue (#338), please fix it as this is a critical bug 🙏🏼
Thanks a lot.
Any update on this issue? We are experiencing the same issue
Same issue
Same issue
still getting this problem, any updates?
Just search for CustomInfoPanelEndNavButtonBinder.kt
and delete activity.finish(), for example I did a new event called NAVIGATION_USER_CANCELLED and handle the actions with this event.
return object : UIComponent() {
override fun onAttached(mapboxNavigation: MapboxNavigation) {
super.onAttached(mapboxNavigation)
button.setOnClickListener {
//mapboxNavigation.stopTripSession()
PluginUtilities.sendEvent(MapBoxEvents.NAVIGATION_USER_CANCELLED)
//activity.finish() //--> this
}
}
}
Same issue