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]: Real location is not getting updated properly using get position stream #1610

Closed
3 of 8 tasks
divyashree-Tvs opened this issue Nov 21, 2024 · 0 comments
Closed
3 of 8 tasks

Comments

@divyashree-Tvs
Copy link

divyashree-Tvs commented Nov 21, 2024

Please check the following before submitting a new issue.

Please select affected platform(s)

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

Steps to reproduce

1)run the flutter web app which uses geolocator 13.0.2 to listen to the location updates continously using position stream
2)travel for about 30 m while running the app

Expected results

the position should update properly for every 3 m

Actual results

same position is shown for every 3 m

Code sample

Code sample
 
      LocationSettings locationSettings = const LocationSettings(
        accuracy: LocationAccuracy.high,
        distanceFilter: 3,
      );
    

      positionStreamSubscription =
          Geolocator.getPositionStream(locationSettings: locationSettings)
              .listen(
        (Position position) {
          Map<String, dynamic> locationPayload = {
            "latitude": position.latitude,
            "longitude": position.longitude,
          };
        
        },
        
  




</details>


### Screenshots or video

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

[Upload media here]

</details>


### Version

13.0.2

### Flutter Doctor output

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

```console
```[✓] Flutter (Channel stable, 3.22.0, on Ubuntu 22.04.2 LTS 6.8.0-48-generic, locale en_US.UTF-8)
    • Flutter version 3.22.0 on channel stable at /home/divya/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.gitFramework revision 5dcb86f68f (7 months ago), 2024-05-09 07:39:20 -0500Engine revision f6344b75dc
    • Dart version 3.4.0DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/divya/Android/SdkPlatform android-34, build-tools 34.0.0Java binary at: /snap/android-studio/161/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[✓] Android Studio (version 2024.1)
    • Android Studio at /snap/android-studio/161Flutter plugin version 82.1.2Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dartJava version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.93.0)
    • VS Code at /usr/share/code
    • Flutter extension version 3.100.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Ubuntu 22.04.2 LTS 6.8.0-48-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 120.0.6099.129

[✓] Network resources
    • All expected network resources are available.

• No issues found!

</details>
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