- Minor optimization and bug fixes.
- Minor optimization and bug fixes.
Breaking Changes:
- Starting from this version, you first need to initialize the services to use their features.
- Added
initFusedLocationService()
method toFusedLocationProviderClient
. - Added
initActivityIdentificationService()
method toActivityIdentificationService
. - Added
initGeofenceService()
method toGeofenceService
. - Added
initGeocoderService(Locale locale)
method toGeocoderService
. - Removed
Locale
parameter fromgetFromLocation
andgetFromLocationName
methods.
- Added
For more information, please visit the API References document.
- Breaking Change: The minimum API Level minSdkVersion changed 21 .
- Fix issues related to Pending Intents in Android API 33.
- Optimized the scenario where no GNSS location is returned.
- Added the logic of checking whether the value is empty during coordinate conversion
- Added error code 10206 for the geofence function, indicating that the geofence function is disabled.
- Added PRIORITY_HIGH_ACCURACY_AND_INDOOR (location request type) to LocationRequest, which is used to check whether location type is indoor location or fused location.
- Added the utility class LocationUtils for converting WGS84 coordinates into GCJ02 coordinates.
- Added LonLat, which is a coordinate object returned after coordinate type conversion.
- Modified getCoordinateType and setCoordinateType in HWLocation, and setCoordinateType in LocationRequest.
- Modified the following APIs in FusedLocationProviderClient to support setting of the output coordinate type: getLastLocationWithAddress(LocationRequest request), requestLocationUpdates(LocationRequest request, LocationCallback callback, Looper looper), requestLocationUpdatesEx(LocationRequest request, LocationCallback callback, Looper looper)
- Adapted to Android 13, so that your app can use related functions normally when running on Android 13.
- Optimized callback parameters of the disableBackgroundLocation and enableBackgroundLocation(int id, Notification notification) methods in FusedLocationProviderClient.
- Optimized AndroidManifest.xml in the Location SDK to ensure that the displayed version number is consistent with the integrated version number.
- Modified the naming rule of xxx.properties in the Location SDK to solve the integration conflict issue.
- Breaking Change: With this release,
PermissionHandler
has been removed. You are expected to handle required permissions on your own. You can learn more about the required permissions from our official documentations - Opened the background location service for non-Huawei Android phones, and added the enableBackgroundLocation and disableBackgroundLocation methods to the FusedLocationProviderClient class.
- Supported fused location on non-Huawei phones.
- Added the setLogConfig and getLogConfig methods to the FusedLocationProviderClient class for log recording function.
- Added the GeocoderService class with getFromLocation and getFromLocationName methods.
- Modified the internal structure of the plugin. Please use import 'package:huawei_location/huawei_location.dart' not to get any errors.
- Deleted the capability of prompting users to install HMS Core (APK).
- Added the High-precision Location capability.
NOTE Currently, the high-precision location capability of Location Kit is available only in Shenzhen, Guangzhou, Suzhou, Hangzhou, and Chongqing in the Chinese mainland.
- Supported fused location on non-Huawei phones.
- Canceled support of the geofence function on non-Huawei phones.
- [Breaking Change] Added Null Safety support.
- Added the following properties to the LocationSettingsStates class: hmsLocationPresent, hmsLocationUsable, gnssPresent, gnssUsable.
- Deprecated the following properties in the LocationSettingsStates class: gpsPresent, gpsUsable.
- Removed the following property in the NavigationRequest class: extras.
- Added the getNavigationContextState function.
- Added the enableLogger and disableLogger methods.
- Fix minor issues.
- Initial release.