Skip to content

[Bug]: #1622

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

Closed
3 of 8 tasks
joselcv opened this issue Jan 6, 2025 · 0 comments
Closed
3 of 8 tasks

[Bug]: #1622

joselcv opened this issue Jan 6, 2025 · 0 comments

Comments

@joselcv
Copy link

joselcv commented Jan 6, 2025

Please check the following before submitting a new issue.

Please select affected platform(s)

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

Steps to reproduce

When trying to get the current location on Android 15, it retrieves incorrect coordinates However, it worked fine in previous versions.

Position position = await Geolocator.getCurrentPosition(
locationSettings: AndroidSettings(
accuracy: LocationAccuracy.best,
distanceFilter: 100,
forceLocationManager: true,
foregroundNotificationConfig: ForegroundNotificationConfig(
notificationText:S.current.sending_your_location,
notificationTitle: "Running in Background",
enableWakeLock: true,
)
);
);

Expected results

3.400058, -76.548195

Actual results

3.3873873873873874 -76.5662043915291

Code sample

Code sample
Position position = await Geolocator.getCurrentPosition(
        locationSettings: AndroidSettings(
          accuracy: LocationAccuracy.best,
          distanceFilter: 100,
          forceLocationManager: true,
          //(Optional) Set foreground notification config to keep the app alive 
          //when going to the background
          foregroundNotificationConfig:  ForegroundNotificationConfig(
            notificationText:S.current.sending_your_location,
            notificationTitle: "Running in Background",
            enableWakeLock: true,
          )
      );
        );

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

geolocator: ^13.0.2

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1.1 24B91 darwin-arm64, locale es-419)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.96.2)
[✓] Connected device (5 available)
[✓] Network resources

• No issues found!
@joselcv joselcv closed this as completed Jan 7, 2025
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