Skip to content

[Bug]:  #1622

Closed
Closed
[Bug]: #1622
@joselcv

Description

@joselcv

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions