mapbox-maps-android
mapbox-maps-android copied to clipboard
LocationProvider is null in the LocationComponentPlugin
Environment
- Android OS version: 11
- Devices affected: Desktop Head Unit, LG G8s
- Maps SDK Version: 10.4.0
Observed behavior and steps to reproduce
So basically I tried to display the mapbox map on Android Auto. The sample app does that, with location updates. To make it more comfortable to me, I took the parts I needed and translated them to java. After many hard errors, I figured it out and it now displays a map.
In the CarCameraController you want to take the LocationComponentPlugin and its fellow listeners. I get it via getPlugin(Plugin.MAPBOX_LOCATION_COMPONENT_PLUGIN_ID).
But for me it comes without a LocationProvider, not even the default one. I tried to create one, but that does not trigger any location updates.
If someone could help me somehow, i would appreciate it very much.
Kind regards Marco
@mhille3 hi, could you please share the code you're running?
Bump, because i really need help on that
+help
@mhille3 sorry your response was not seen sooner. I'd be happy to assist. Were you able to get this behavior resolved?
Closing this ticket, but please feel free to reopen if you continue to experience this behavior.