flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

App closes when clicking on stop navigation button (Using embedded navigation)

Open YoavSl opened this issue 1 year ago • 6 comments

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.

YoavSl avatar Jun 25 '24 11:06 YoavSl

Any update on this issue? We are experiencing the same issue

nbitton-os avatar Jun 30 '24 07:06 nbitton-os

Same issue

Arshad-ullah avatar Jul 23 '24 15:07 Arshad-ullah

Same issue

ffkarine avatar Jul 23 '24 20:07 ffkarine

still getting this problem, any updates?

ivan-acosta08 avatar Aug 26 '24 18:08 ivan-acosta08

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
                }
            }
        }

subastasrd21 avatar Sep 20 '24 04:09 subastasrd21

Same issue

Mukesh-Vishwakarma avatar Jul 14 '25 12:07 Mukesh-Vishwakarma