目录

Location Kit 4.0.4(2020-05-29)

Latest release: 4.0.4.300

Modified features

Location Kit 4.0.3(2020-04-15)

Latest release: 4.0.3.303

New features

Added the high-precision locating capability.

Method

Class

requestLocationUpdatesEx (LocationRequest request, LocationCallback callback, Looper looper)

com.huawei.hms.location.FusedLocationProviderClient


Modified Features

Rectified app crash caused by dependent components of the SDK.


Location Kit 4.0.2(2020-03-12)

Latest release: 4.0.2.300

New features

Optimize location permissions.


Location Kit 4.0.1(2020-02-06)

Latest release: 4.0.1.300

New features

Provide a solution for integrating HUAWEI Location SDK into Eclipse projects.


Location Kit 4.0.0(2020-01-15)

Latest release: 4.0.0.300

New features

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


Location Kit 3.0.2(2019-10-31)

Latest release: 3.0.2.300

New features

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


Location Kit 3.0.1(2019-09-19)

Latest release: 3.0.1.300

Modified Features

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.


Location Kit 3.0.0(2019-09-03)

Latest release: 3.0.0.301

Modified Features

1. Added the network-based location permission to resolve security risks.


Location Kit 3.0.0(2019-08-17)

Latest release: 3.0.0.300

New features

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


About SDK Dependencies

  1. 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.

  2. 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.

NOTE:

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