Skip to content

Mapbox Navigation SDK v2.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@RingerJK RingerJK released this 26 Mar 16:04
· 1762 commits to main since this release

This is the third release in the Public Preview phase of the Navigation SDK v2.

For information on how to install the SDK and use features that are new in v2 like predictive caching, see the public preview documentation.

For more information on fundamental navigation concepts like route generation and tracking route progress, see the documentation for the latest stable version.

For details on how v2 differs from v1 and guidance on migrating from v1 of the Mapbox Navigation SDK for Android to the v2 public preview, see 2.0 Navigation SDK Migration Guide.

Changelog

Features

  • Implemented Guidance Views. See MapboxJunctionApi and MapboxJunctionView for details. #4157
  • Added SnappingClosures param to route request builder. #4161

Bug fixes and improvements

  • Added text placeholder for TripNotification View. #4160
  • Fixed bug with missing annotations in reroute/faster route. #4171
  • Changed the timing of the Navigation Camera's transition to the Following state to improve the zoom-in relation to the centering animation. #4175

Other changes

  • Added an example to show custom styling. #4178

Known issues

When integrating this release, you might run into a crash on startup caused by cached data incompatibility. To resolve the issue using one of the following instructions:

  • clear the application storage;
  • use one-time approach to remove incompatible cache. Important to do it onCreate() of the app, till any of mapbox resources start running:
class App : Application() {
    override fun onCreate() {
        super.onCreate()
        val filesDirePath = applicationContext.filesDir.absolutePath
        val routingTilesDire = "/mbx_nav" // needs to be equal to RoutingTilesOptions.filePath

        // you can clear the specific targets below, or the whole filesDir
        // you might want to use shared preference or other persistent storage and if-check to only perform this action once,
        // or remove this cleanup logic when you know all devices have already adopted the change and have been cleared
        File(filesDirePath + "/mbx.db").delete()
        File(filesDirePath + routingTilesDire).deleteRecursively()
    }
}

Mapbox dependencies

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

  • Mapbox Maps SDK v10.0.0-beta.16.
  • Mapbox Navigation Native v47.0.0.
  • Mapbox Core Common v10.0.2.
  • Mapbox Java v5.9.0-alpha.3.
  • Mapbox Android Core v3.1.1.
  • Mapbox Android Telemetry v6.2.2.