Latest release: 4.0.4.300
Optimized the fused location function.
Supplemented error codes.
Latest release: 4.0.3.303
Added the high-precision locating capability.
High-precision locating method
Method | Class |
requestLocationUpdatesEx (LocationRequest request, LocationCallback callback, Looper looper) | com.huawei.hms.location.FusedLocationProviderClient |
Rectified app crash caused by dependent components of the SDK.
Latest release: 4.0.2.300
Optimize location permissions.
Latest release: 4.0.1.300
Provide a solution for integrating HUAWEI Location SDK into Eclipse projects.
Latest release: 4.0.0.300
Geofence
Added the geofence function.
Method | Class |
createGeofenceList(GeofenceRequest geofenceRequest, PendingIntent pendingIntent) | com.huawei.hms.location.GeofenceService |
deleteGeofenceList(List<String> geofenceRequestIds) | com.huawei.hms.location.GeofenceService |
deleteGeofenceList(PendingIntent pendingIntent) | com.huawei.hms.location.GeofenceService |
Latest release: 3.0.2.300
Added the activity recognition function.
The activity recognition API is provided. After your app is configured to listen for activities, your app can detect when the user device starts or stops an activity, for example, walking, running, bicycling, or driving.
Method | Class |
ActivityIdentificationService getService(Activity activity) | com.huawei.hms.location.ActivityIdentification |
Task<Void> deleteActivityConversionUpdates(PendingIntent pendingIntent) | com.huawei.hms.location.ActivityIdentificationService |
Task<Void> deleteActivityIdentificationUpdates(PendingIntent callbackIntent) | com.huawei.hms.location.ActivityIdentificationService |
Task<Void> createActivityConversionUpdates(ActivityConversionRequest activityConversionRequest, PendingIntent pendingIntent) | com.huawei.hms.location.ActivityIdentificationService |
Task<Void> createActivityIdentificationUpdates(long detectionIntervalMillis, PendingIntent callbackIntent) | com.huawei.hms.location.ActivityIdentificationService |
Latest release: 3.0.1.300
1. Solved the issue that setMockMode is unavailable.
2. Optimized the memory usage during startup.
3. Optimized check setting experience to ask users to grant the location permission.
Latest release: 3.0.0.301
1. Added the network-based location permission to resolve security risks.
Latest release: 3.0.0.300
1. Request location updates.
2. Remove location updates.
3. Obtain the last available location.
4. Obtain location availability.
5. Set the mock location.
Method | Class |
requestLocationUpdates(LocationRequest request, LocationCallback callback, Looper looper): | com.huawei.hms.location.FusedLocationProviderClient |
removeLocationUpdates(LocationCallback callback) | com.huawei.hms.location.FusedLocationProviderClient |
requestLocationUpdates(LocationRequest request, PendingIntent callbackIntent) | com.huawei.hms.location.FusedLocationProviderClient |
removeLocationUpdates(PendingIntent callbackIntent) | com.huawei.hms.location.FusedLocationProviderClient |
getLastLocation() | com.huawei.hms.location.FusedLocationProviderClient |
getLocationAvailability() | com.huawei.hms.location.FusedLocationProviderClient |
setMockMode(boolean isMockMode) | com.huawei.hms.location.FusedLocationProviderClient |
setMockLocation(Location mockLocation) | com.huawei.hms.location.FusedLocationProviderClient |
checkLocationSettings(LocationSettingsRequest locationSettingsRequest) | com.huawei.hms.location.SettingsClient |
The SDK of the latest version runs on a mobile phone with HMS Core (APK) 4.0.1.300 or later installed. On a mobile phone that does not have HMS Core (APK) 4.0.0.300 or later installed, the user will be prompted to install it when your app calls HMS Core.
Basic features of HUAWEI Location SDK are available on most Huawei devices, whereas some advanced features are available only on Huawei devices running EMUI of the required versions. For details, please refer to EMUI Version-Dependent Features.
If you have any questions on releasing your app in HUAWEI AppGallery, contact us via HMSCore@huawei.com.
| HMS SDK 3.0, released on August 17, 2019 |
| Development documentation for the HMS SDK 3.0 |