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

Navigation notification should show correct information and end navigation when tapped

Open Guardiola31337 opened this issue 8 years ago • 4 comments

  • We should revisit/refactor MapboxNavigationNotification (a foreground service like NavigationService must provide a notification for the status bar) which in some situations is displaying nothing (note 👇 before expanding the notification) and also there are some functionalities (e.g. END NAVIGATION) not working 👀

nav-service-notification

cc/ @danesfeder @devotaaabel

Guardiola31337 avatar Feb 20 '18 19:02 Guardiola31337

Remember to take into account https://github.com/mapbox/mapbox-navigation-android/pull/805#pullrequestreview-107394570

One thing that's we also have to look at here is MapboxNavigationNotification which also uses TimeUtils#formatArrivalTime. We might have to move the timeFormatType to MapboxNavigationOptions so it can be used for both the core + UI libraries. The notification is currently created in the core library for the NavigationService

and https://github.com/mapbox/mapbox-navigation-android/pull/805#issuecomment-376819342

Yeah, I noticed as well. BTW I think we should do that (consolidate TimeUtils#formatArrivalTime and TimeUtils#formatTime methods and use only one of them across the SDK) when we tackle https://github.com/mapbox/mapbox-navigation-android/issues/713 i.e. in a different PR.

when tackling OP.

Guardiola31337 avatar Apr 01 '18 08:04 Guardiola31337

@Guardiola31337 May I Ask How You Have The Speed Limit Showing, This is a Feature I Requested A While Back, For This To Be Available In NavigationLauncher #529

Danny-James avatar Apr 10 '18 11:04 Danny-James

@Danny-James that is showing the current speed, not the speed limit.

devotaaabel avatar Jun 12 '18 21:06 devotaaabel

Also, I believe there should be behavior when clicking the whole notification, i.e., reopening the app.

devotaaabel avatar Jun 12 '18 21:06 devotaaabel