Reputation: 41
I'm using geolocator package for the purpose of device current location when I'm using my app in my real device that's perfectly run and returning back the exact long and lang when I'm using the same app in android emulator nothing is returning how I can resolve this issue?
Upvotes: 1
Views: 3326
Reputation: 2266
The only thing that worked for me, was changing the location and then going into Google Maps on the emulator, enable location there and wait for it to jump from the Googleplex location, to the custom location. Then I restarted my app, and it returned the correct location.
Upvotes: 1