mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

LocationProvider is null in the LocationComponentPlugin

Open mhille3 opened this issue 3 years ago • 4 comments

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 avatar Apr 21 '22 10:04 mhille3

@mhille3 hi, could you please share the code you're running?

yunikkk avatar Apr 22 '22 11:04 yunikkk

Had to share in txt or zip, so i hope the one script is enough

CarCameraController.txt

mhille3 avatar Apr 22 '22 12:04 mhille3

Bump, because i really need help on that

mhille3 avatar Apr 26 '22 07:04 mhille3

+help

mhille3 avatar May 16 '22 11:05 mhille3

@mhille3 sorry your response was not seen sooner. I'd be happy to assist. Were you able to get this behavior resolved?

ZiZasaurus avatar Oct 24 '22 22:10 ZiZasaurus

Closing this ticket, but please feel free to reopen if you continue to experience this behavior.

ZiZasaurus avatar Nov 19 '22 14:11 ZiZasaurus