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]: Windows suddenly not giving right location #1514

Open
3 of 8 tasks
corepuncher opened this issue May 15, 2024 · 1 comment
Open
3 of 8 tasks

[Bug]: Windows suddenly not giving right location #1514

corepuncher opened this issue May 15, 2024 · 1 comment

Comments

@corepuncher
Copy link

corepuncher commented May 15, 2024

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Steps to reproduce

Build a flutter app using geolocator, dart 3.4.0, and flutter 3.22 (latest updates).

It keeps putting my lat lon over in Virginia in my app. I have not changed geoloctor code in my flutter app recently.

Expected results

Should detect correct location

Actual results

Thinks I'm in Virginia.

Code sample

Code sample
      final position = await Geolocator.getCurrentPosition(
        desiredAccuracy: LocationAccuracy.medium,
      );

      lat = double.parse(position.latitude.toStringAsFixed(3));
      lon = double.parse(position.longitude.toStringAsFixed(3));

      print('lat is: $lat');
      print('lon is: $lon');```

</details>


### Screenshots or video

<details>
<summary>Screenshots or video demonstration</summary>

[Upload media here]

</details>


### Version

11.0.0, then tried 11.1.0 with same result

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version
    10.0.22621.3447], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.89.1)
[√] Connected device (5 available)
[√] Network resources

• No issues found!```

</details>
@corepuncher
Copy link
Author

corepuncher commented May 15, 2024

I have confirmed that this is not a problem with my particular Windows device, as I built it and sent to a friend, and it is also showing his location as 54 miles northeast of Durham, North Carolina.

flutter: Position: Latitude: 36.6674, Longitude: -78.39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant