flutter-geolocator icon indicating copy to clipboard operation
flutter-geolocator copied to clipboard

GetCurrentPosition doesn't return a location on PDA android devices

Open ebrahimmansur opened this issue 2 years ago • 1 comments

🐛 Bug Report

the get current position doesn't return a location I tried to test it by placing a try catch and a break point when calling [ Geolocator.getCurrentPosition()] but never got a return value or a expectation thrown.

package version -> ^9.0.0

android device -> https://www.senter-e.com/pda/5-7inch-pda/pda-android.html android api 28

ebrahimmansur avatar Aug 26 '22 08:08 ebrahimmansur

I'm facing the same issue on android using geolocator 9.0.1

benyameenashraf avatar Aug 29 '22 14:08 benyameenashraf

Hi @ebrahimmansur, @benyameenashraf!

We just fixed an issue on Android today that involves the LocationManager. I am assuming your device does not have access to the Google Play Services, which means it needs to use this manager. Can you upgrade to the latest version of the geolocator plugin (10.0.1) and run dart pub upgrade? You should see geolocator_android with version 4.2.3 in your pubspec.lock file.

Please let me know if this resolves your issue.

JeroenWeener avatar Sep 12 '23 15:09 JeroenWeener

Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.

github-actions[bot] avatar Sep 26 '23 16:09 github-actions[bot]