onAARequestsMapReset

abstract fun onAARequestsMapReset()

Called when Android Auto needs to reset the MapView to tracking mode.

This callback is invoked after navigation ends on Android Auto to restore the map to its initial tracking state. Unlike the phone app where the MapView is destroyed and recreated when switching screens, the AA MapView persists throughout the session. This means explicit cleanup is needed to:

  • Clear stale guidance overlays (turn arrows, instructions on map)

  • Reset location source from demo mode (LocationFromRoute) to real GPS

  • Re-attach the MapView to Navigation for tracking updates

  • Restore the user position icon on the map

The phone app should:

  • Stop any existing Navigation session

  • Change location source to real GPS (not demo/simulation)

  • Set NavigationMapViewMode to GUIDANCE_VIEW_AUTO

  • Start a new tracking session

  • Add navigation progress listener for tracking

See also