Skip to content

Location component location retrieval speed and reliability decreased with 10.0.0-rc.4 #614

@moritzzzzz

Description

@moritzzzzz

Environment

  • Android OS version: tested on API 29 / 30
  • Devices affected: Tested on Xiaomi Mi MIX 2s, Emulator Pixel 4 API 29
  • Maps SDK Version: 10.0.0-rc.4 and above

Observed behavior and steps to reproduce

Please find attached an example project that showcases the behaviour. I have built in a timer that will pop open a alter window showing the time elapsed since the style has loaded until the locationComponent found the position:

locationComponentBug.zip

Test out the change in behaviour by changing the dependency in the app level build.gradle from implementation 'com.mapbox.maps:android:10.0.0-rc.3' to implementation 'com.mapbox.maps:android:10.0.0-rc.4'

Expected behavior

The behaviour experienced in 10.0.0-rc.3 is expected.
LocationComponent should retrieve position ~50ms after style was loaded.

Notes / preliminary analysis

When running simultaneously a normal location request using GMS services, the location is returned within milliseconds.
When the locationComponent does not fetch a location at all, it helps to update the lastKnownLocation by finding the location in a different application.

--> I assume a location update from the FusedLocationProvider might be requested with the wrong priority. Can you please check that you are requesting with highest priority?

Additional links and references

Please see attached project.

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions