mapbox-navigation-android icon indicating copy to clipboard operation
mapbox-navigation-android copied to clipboard

NavigationLauncher onRunning

Open floydignified opened this issue 8 years ago • 1 comments

Any way I can get the onRunning event on NavigationLauncher? Cant find any on the docs

floydignified avatar May 23 '18 03:05 floydignified

Hey @floydignified 👋 thanks for reaching out and report your question.

Unfortunately, this is not possible using the NavigationLauncher. Because we launch NavigationActivity via an Intent, we aren't able to handle the transfer of the listener references.

I encourage you to use NavigationView instead. Using the NavigationView without NavigationLauncher allows you to add these listeners to your own Activity and would solve your issue here: https://www.mapbox.com/android-docs/navigation/overview/navigation-ui/#navigationview

In any case, this issue tracker is only for bug reports with test cases and feature requests. In the future, please direct these kind of questions to https://stackoverflow.com/questions/tagged/mapbox. We keep an eye on those questions as well and it helps bring visibility to other developers that may be facing similar issues. Thanks again!

Guardiola31337 avatar May 23 '18 08:05 Guardiola31337