Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Location request hang if location service is unvailable or permissions are denied #508

Open
albertmoravec opened this issue Oct 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@albertmoravec
Copy link

Platforms

android

Version of flutter maplibre_gl

0.20.0

Bug Description

When requestMyLocationLatLng() is called with location service is disabled or permissions were denied, the call hangs indefinitely because of missing else branch which would submit the result here.

Steps to Reproduce

  1. Disable location permissions
  2. Call requestMyLocationLatLng()
  3. Observe the call hanging

Expected Results

Exception describing that location is unavailable.

Actual Results

Call hangs.

Code Sample

final location = await _controller.requestMyLocationLatLng();
print(location)
@albertmoravec albertmoravec added the bug Something isn't working label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant