Skip to content

Navigation SDK v3.31.2

Choose a tag to compare

Features

  • Added SdkDispatchers (@MapboxExperimental) — a central coroutine dispatcher holder for the Navigation SDK. Call SdkDispatchers.configure {} in Application.onCreate() to limit SDK parallelism (e.g. setDefaultParallelism, setIoParallelism) and reduce contention with the host application's own thread pools. If configure is never called the SDK falls back to Dispatchers.Default and Dispatchers.IO.
  • Replaced MapboxEvViewOptions.Builder#withIconFactory with withIconVariantsFactory, which returns an ordered list of icon variants for a station. The map shows the first variant that fits. Icons are now created lazily from MapboxEvViewClient#onStyleImageMissing.
  • Added MapboxEvViewOptions.Builder#withIconOffsets to set an icon offset per variant.
  • Added support for the INITIALIZED route state during EV charging at the departure waypoint. Added ChargingState, RouteProgress#chargingState, and RouteProgress#isChargingExpected to expose the current charging phase, and MapboxNavigation#startCharging/MapboxNavigation#stopCharging to control charging transitions.

Bug fixes and improvements

  • Fixed EV dynamic data updates mixing the battery conditioning model parameters with the legacy preconditioning parameters, which produced a conflicting set that Directions rejected. An update now supersedes the other group, keeping only the parameters from the latest update.
  • Fixed Copilot history files not being uploaded in apps minified with R8 full mode.
  • Fixed an issue where Copilot could upload history files with an empty or rotated access token captured when the upload was scheduled. The current MapboxOptions.accessToken is now used whenever possible.

Mapbox dependencies

This release depends on, and has been tested with, the following Mapbox dependencies:

  • Mapbox Maps SDK v11.31.2 (release notes)
  • Mapbox Navigation Native v324.31.2
  • Mapbox Core Common v24.31.2
  • Mapbox Java v7.10.1 (release notes)