PackageTrack
Sign in Get early access

location_platform_interface

A common platform interface for the location plugin.

7.0.0 208K downloads/mo #837 most downloaded on pub.dev Lyokone/flutterlocation

What this package is like to depend on

Last release 1 months ago

18 Jul 2026

Release timing varies

gaps range from 8 days to 13 months

Nearly every release is documented

notes for 17 of 17 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

22 releases · first in 2020

1 release in the last 12 months

see the full history below

Release timeline

22 releases · Mar 2020 to Jul 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 22
  1. 7.0.0 18 Jul 2026
    Release notes Open source →
    Release notes

    💥 Breaking changes

    • LocationData.latitude and LocationData.longitude are now non-nullable (double instead of double?). Every platform implementation always sets both, so the nullability was never load-bearing; fromMap/fromJson now throw instead of silently producing a LocationData with null coordinates if given a map that omits them (#675).

    Added

    • LocationData.toJson(), LocationData.fromJson() and LocationData.copyWith().
    • LocationData.isMock, populated on Apple platforms from CLLocation.sourceInformation.isSimulatedBySoftware (#796).
    • LocationData.isProducedByAccessory, populated on Apple platforms from CLLocation.sourceInformation?.isProducedByAccessory (#914).
    • LocationPlatform.isBackgroundPermissionGranted(), reporting whether background ("Allow all the time"/Always) location access has been granted, independent of foreground access (#538).
    • LocationPlatform.getLastKnownLocation(), returning the most recently cached LocationData immediately, or null when none is available, without waiting for a fresh fix (#733).
    • backgroundInterval parameter on changeSettings, an Android-only alternate update interval used while background mode is enabled (#1011).
    • requireBackgroundPermission parameter on enableBackgroundMode (Android only; defaults to true, preserving current behavior). When false, skips the ACCESS_BACKGROUND_LOCATION prompt and relies on the foreground-service background-access exemption instead (#600).
    • imageName parameter on changeNotificationOptions, for a background notification large icon resolved by drawable name (#856).
    • iconBytes/imageBytes parameters on changeNotificationOptions, an alternative to iconName/imageName for callers that render an icon at runtime (e.g. from a Flutter IconData) instead of bundling a drawable resource (#1017).
    Open source →
    Release notes
    • Bump minimum Dart version to 3.4, minimum Flutter version to 3.22

    • Bump dependencies

    Open source →
  2. 6.0.1 18 Jun 2025
    Release notes Open source →
    Release notes
    • Configure pausesLocationUpdatesAutomatically on iOS (#933)
    Open source →
    Release notes
    • Downgraded location_web dependency on js ^0.7.1 to js ^0.6.3 for compatibility with firebase_core ^2.27.2 (#942)
    Open source →
  3. 6.0.0 23 Jan 2025
    Release notes
    • Bump dependencies (#952)
      • Bump minimum Dart version to 3.6, minimum Flutter version to 3.27
    Open source →
    Release notes
    • Bump Android Gradle Plugin from 7.4.2 to 8.3.1

    • Bump minimum supported Android SDK to 21

    • Bump minimum Dart version to 3.1, minimum Flutter version to 3.16

    • Bump dependencies

    Open source →
  4. 5.0.0 28 Jun 2024
    Release notes
    • Bump dependencies (#964)
      • Bump minimum Dart version to 3.4, minimum Flutter version to 3.22
    Open source →
    Release notes
    • Fix build errors on Android (#847)

    • Bump minimum Flutter to 3.0 (#847)

    Open source →
  5. 5.0.0-dev.3 24 Jun 2022 pre-release

    Nothing published for this version

  6. 5.0.0-dev.2 11 Jun 2022 pre-release

    Nothing published for this version

  7. 5.0.0-dev.1 11 Jun 2022 pre-release

    Nothing published for this version

  8. 5.0.0-dev.0 10 Jun 2022 pre-release

    Nothing published for this version

  9. 4.0.0 30 Mar 2024
    Release notes
    • Bump dependencies (#937)
      • Bump minimum Dart version to 3.1, minimum Flutter version to 3.16
    Open source →
    Release notes
    • FEAT : Update to null safety.

    • Update to null safety and Melos

    Open source →
  10. 3.1.2 09 Aug 2023
    Release notes
    • Fix cast error in Location.changeNotificationOptions() (#877)
    Open source →
  11. 3.1.1 04 Aug 2023
    Release notes
    • Fix cast error in Location.onLocationChanged (#871)
    Open source →
  12. 3.1.0 23 Jul 2023
    Release notes
    • Refactoring (#853)
      • Set up code formatting & linting on CI
      • Remove unused dependency on package:meta
      • Bump minimum Flutter to 3.3
    Open source →
    Release notes
    • Do not throw errors from methods that do not need an activity.

    • [BREAKING] The error thrown is now ActivityNotFoundException which changes the error code returned when activity is not found. It used to be NO_ACTIVITY, now it is just error. We anticipate this error to be rarely experienced in the wild.

    Open source →
  13. 3.0.0 10 Jul 2023
    Release notes
    • Bump minimum Flutter to 3.0 (#847)
    Open source →
    Release notes
    • Add Web and macOS as new supported platforms (huge thanks to long1eu)

    • [BREAKING] Enums are now following Dart guidelines.

    • [BREAKING] onLocationChanged is now a getter to follow Dart guidelines.

    Open source →
  14. 2.3.0 14 Jun 2021
    Release notes
    • FIX: add platform tests.
    • FIX: fix tests.
    • FEAT: improve coverage.
    Open source →
    Release notes
    • Update example App with proper cancel

    • Add possibility to set accuracy, interval and minimum notification ditance of the requests.

    • Add LocationAccuracy object

    Open source →
  15. 2.2.0 05 Jun 2021
    Release notes
    • FIX: fix the depreciation warning on android #550.
    • FEAT: add several information to resolve #552.
    • FEAT: improve LocationData doc.
    • FEAT: improve example app.
    • FEAT: add isMock information on LocationData.
    • FEAT: add fallback for LocationAccuracy.reduced on Android.
    • FEAT: add option to reopen app from notification.
    • FEAT: allow for customizing Android notification text, subtext and color.
    • FEAT: allow for customizing Android background notification from dart.
    • DOCS: update readme web.
    • CHORE: publish packages.
    • CHORE: publish packages.
    • CHORE: publish packages.
    Open source →
    Release notes
    • Actually updating locatino when using getLocation (not only relying on LastLocation)

    • Add timestamp to LocationData

    • Add serviceEnabled method to check whether Location Service is enabled.

    • Add requestService method to ask the user to activate the location service.

    • Fix continuous callback heading

    Open source →
  16. 2.1.0 08 Mar 2021
    Release notes
    • FEAT: add option to reopen app from notification.
    • FEAT: allow for customizing Android notification text, subtext and color.
    • FEAT: allow for customizing Android background notification from dart.
    Open source →
    Release notes
    • iOS permission should be closer to Android permission behaviour thanks to PerrchicK

    • Adding requestPermission(), to manually request permission

    • Several feature fixed for less crash when using the plugin

    • Code Cleanup

    • Update Readme and add a warning for the location bug in iOS simulator

    Open source →
  17. 2.0.1 04 Mar 2021
    Release notes
    • DOCS: update readme web.
    • CHORE: publish packages.
    Open source →
  18. 2.0.0 04 Mar 2021
    Release notes
    • FEAT: Update to null safety.
    • Update to null safety and Melos
    Open source →
    Release notes
    • Code cleanup

    • BREAKING CHANGE: Change Dart API to return structured data rather than a map.

    Open source →
  19. 2.0.0-nullsafety.0 25 Dec 2020 pre-release

    Nothing published for this version

  20. 1.1.0 23 Dec 2020
    Release notes
    • Add new interface method enableBackgroundMode(boolean) to control weather plugin should work in the background or not.
    Open source →
    Release notes
    • Added permission check for Android 6+ (thanks netdur). Still no callback when permissions granted so aiming SDK 21 is safer.
    Open source →
  21. 1.0.1 14 Nov 2020
    Release notes
    • Add grantedLimited enum value to PermissionStatus to capture the new limited range authorization that iOS 14 is offering.
    Open source →
  22. 1.0.0 26 Mar 2020
    Release notes
    • Created the platform interface of the Location plugin in order to support Web and macOS (huge thanks to long1eu)
    Open source →
    Release notes
    • Initial Release.

    3.21k

    likes

    150

    points

    204k

    downloads

    Documentation

    API reference

    Publisher

    bernos.dev

    Weekly Downloads

    Metadata

    Cross-platform plugin for easy access to device's location in real-time.

    Homepage

    Repository (GitHub)

    View/report issues

    License

    MIT ( license )

    Dependencies

    flutter , location_platform_interface , location_web

    More

    Packages that depend on location

    Packages that implement location

    ← Metadata

    3.21k

    likes

    150

    points

    204k

    downloads

    Documentation

    API reference

    Publisher

    bernos.dev

    Weekly Downloads

    Metadata

    Cross-platform plugin for easy access to device's location in real-time.

    Homepage

    Repository (GitHub)

    View/report issues

    License

    MIT ( license )

    Dependencies

    flutter , location_platform_interface , location_web

    More

    Packages that depend on location

    Packages that implement location

    Back

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive