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 2026Releases
latest 22-
7.0.018 Jul 2026Release notes
Open source →💥 Breaking changes
LocationData.latitudeandLocationData.longitudeare now non-nullable (doubleinstead ofdouble?). Every platform implementation always sets both, so the nullability was never load-bearing;fromMap/fromJsonnow throw instead of silently producing aLocationDatawith null coordinates if given a map that omits them (#675).
Added
LocationData.toJson(),LocationData.fromJson()andLocationData.copyWith().LocationData.isMock, populated on Apple platforms fromCLLocation.sourceInformation.isSimulatedBySoftware(#796).LocationData.isProducedByAccessory, populated on Apple platforms fromCLLocation.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 cachedLocationDataimmediately, ornullwhen none is available, without waiting for a fresh fix (#733).backgroundIntervalparameter onchangeSettings, an Android-only alternate update interval used while background mode is enabled (#1011).requireBackgroundPermissionparameter onenableBackgroundMode(Android only; defaults totrue, preserving current behavior). Whenfalse, skips theACCESS_BACKGROUND_LOCATIONprompt and relies on the foreground-service background-access exemption instead (#600).imageNameparameter onchangeNotificationOptions, for a background notification large icon resolved by drawable name (#856).iconBytes/imageBytesparameters onchangeNotificationOptions, an alternative toiconName/imageNamefor callers that render an icon at runtime (e.g. from a FlutterIconData) instead of bundling a drawable resource (#1017).
Release notes
Open source →-
Bump minimum Dart version to 3.4, minimum Flutter version to 3.22
-
Bump dependencies
-
6.0.118 Jun 2025Release notes
Open source →- Downgraded location_web dependency on js ^0.7.1 to js ^0.6.3 for compatibility with firebase_core ^2.27.2 (#942)
-
6.0.023 Jan 2025Release notes
Open source →- Bump dependencies (#952)
- Bump minimum Dart version to 3.6, minimum Flutter version to 3.27
Release notes
Open source →-
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
- Bump dependencies (#952)
-
5.0.028 Jun 2024Release notes
Open source →- Bump dependencies (#964)
- Bump minimum Dart version to 3.4, minimum Flutter version to 3.22
- Bump dependencies (#964)
-
5.0.0-dev.324 Jun 2022 pre-releaseNothing published for this version
-
5.0.0-dev.211 Jun 2022 pre-releaseNothing published for this version
-
5.0.0-dev.111 Jun 2022 pre-releaseNothing published for this version
-
5.0.0-dev.010 Jun 2022 pre-releaseNothing published for this version
-
4.0.030 Mar 2024Release notes
Open source →- Bump dependencies (#937)
- Bump minimum Dart version to 3.1, minimum Flutter version to 3.16
- Bump dependencies (#937)
-
3.1.209 Aug 2023 -
3.1.104 Aug 2023 -
3.1.023 Jul 2023Release notes
Open source →- Refactoring (#853)
- Set up code formatting & linting on CI
- Remove unused dependency on
package:meta - Bump minimum Flutter to 3.3
Release notes
Open source →-
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.
- Refactoring (#853)
-
3.0.010 Jul 2023Release notes
Open source →-
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.
-
-
2.3.014 Jun 2021Release notes
Open source →-
Update example App with proper cancel
-
Add possibility to set accuracy, interval and minimum notification ditance of the requests.
-
Add LocationAccuracy object
-
-
2.2.005 Jun 2021Release notes
Open source →- 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.
Release notes
Open source →-
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
-
2.1.008 Mar 2021Release notes
Open source →- 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.
Release notes
Open source →-
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
-
2.0.104 Mar 2021 -
2.0.004 Mar 2021Release notes
Open source →-
Code cleanup
-
BREAKING CHANGE: Change Dart API to return structured data rather than a map.
-
-
2.0.0-nullsafety.025 Dec 2020 pre-releaseNothing published for this version
-
1.1.023 Dec 2020Release notes
Open source →- Add new interface method enableBackgroundMode(boolean) to control weather plugin should work in the background or not.
Release notes
Open source →- Added permission check for Android 6+ (thanks netdur). Still no callback when permissions granted so aiming SDK 21 is safer.
-
1.0.114 Nov 2020Release notes
Open source →- Add grantedLimited enum value to PermissionStatus to capture the new limited range authorization that iOS 14 is offering.
-
1.0.026 Mar 2020Release notes
Open source →- Created the platform interface of the Location plugin in order to support Web and macOS (huge thanks to long1eu)
Release notes
Open source →- 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