BirjuVachhani / locus-android

An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
https://birju.dev/posts/retrieve-location-in-just-3-lines-android/
Apache License 2.0
358 stars 40 forks source link

Android Api 30 get current location #70

Open romanfurman6 opened 1 year ago

romanfurman6 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Start android API 30
  2. call getCurrentLocation
  3. Current location is null

Expected behavior For some reason, the same piece of code works for Android 33 but doesn't work for 30... Trying to use getCurrentLocation

Screenshots SCR-20221024-n9f SCR-20221024-n8y

romanfurman6 commented 1 year ago

the problem is in priority 102, on API 30 FusedLocationProvider returns null To repro just run API 30 emulator and set priority to 102

image