Mapbox Initializer
Unified Mapbox SDKs initializer class that catches exceptions to avoid crashing during app process start.
Most of the crashes reported are related to UnsatisfiedLinkError (https://github.com/mapbox/mapbox-maps-android/issues/1109).
This solution is valid only when using Mapbox SDK for Android and no other Mapbox SDK (e.g. Navigation, Search,...).
In order to use this solution no other Mapbox SDK initializer should run (i.e. MapboxMapsInitializer or com.mapbox.common.MapboxSDKCommonInitializer) during process start. See the sdk/src/main/AndroidManifest.xml
file.
Constructors
MapboxInitializer
Link copied to clipboard
fun MapboxInitializer()
Content copied to clipboard
Types
Companion
Link copied to clipboard
object Companion
Content copied to clipboard
Companion object for MapboxInitializer that holds some static state to keep track of initialization state and also provides init that does the SDK native stack initialization.