mapbox / mapbox/mapbox-maps-android

GetPlugin(Plugin.LocationComponentPlugin) returns null after adding Navigation SDK

Open
#2,677 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

**Environment**

* **Platform**: .NET MAUI (binding library)
* **Mapbox Maps SDK version**: `11.15.0`
* **Mapbox Navigation SDK version**: `3.12.0`
* **Setup**: Custom binding library consuming `.aar` and `.jar` dependencies

---

### Issue

When using **only Mapbox Maps SDK**, calling:

```csharp
var locationComponent = mapView.GetPlugin();
```

returns a valid instance of the location component.

However, **after adding the Navigation SDK (`3.12.0`) AARs/JARs**, the same call always returns `null`.
This causes the location puck and location updates to stop working in our MAUI binding project.

---

Could you confirm if additional initialization is now required for the location plugin when using Navigation SDK + Maps SDK, or if this is a regression?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the difference between Maps SDK alone and Maps SDK plus Navigation SDK 3.12.0 using GetPlugin() and the listed AAR/JAR setup. Check the Maps and Navigation plugin initialization requirements and dependency interaction; done means determining whether extra initialization is required or confirming a regression with a minimal reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.