Use this tag for programming questions relating to Huawei location Kit. It is one of the services provided by Huawei HMS Core for developers. Location Kit combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app to build up global positioning capabilities, allowing you to provide flexible location-based services for global users.
Questions tagged [huawei-location-kit]
23 questions
5
votes
1 answer
Reverse Geocode a lat/long coordinate using Geocoder on a HMS device
I'm trying to geocode a lat/long coordinate using the android.location.Geocoder on a HMS (Huawei Mobile Services) device, but I keep getting an empty list as the result.
val result = geoCoder.getFromLocation(latitude, longitude, MAX_RESULTS) // []…

David Medenjak
- 33,993
- 14
- 106
- 134
4
votes
1 answer
If a Huawei device is supporting both GMS and HMS core then why HMS core is not working?
I am developing an app for android, on Huawei devices I am facing many issues. I am using FusedLocation and Notifications in my app due to which I had to develop another app for Huawei devices as many Huawei devices are not supporting GMS now.
I am…

Faizan Ahmad
- 352
- 4
- 20
4
votes
2 answers
HMS FusedLocationProvider and HuaweiMap is not working
I used this class to get current location of device for my map app. I'm using this with GooglePlayServices and its working fine, but I recently switched to HMS for Huawei devices if GooglePlayServices are not available on device. I replaced all…

martin1337
- 2,384
- 6
- 38
- 85
3
votes
1 answer
Flutter app crashing when permission for location is denied with Huawei Location
I am implementing getting device location for Huawei devices, it is working when permission is granted but when is denied app is crashing.
With location from google it never happened.
Here is my code for getting location:
Future…

Karol Wiśniewski
- 378
- 4
- 15
2
votes
1 answer
getCurrentLocation in Huawei (HMS Location)
In android there are two separate functions to get Location:
getLastLocation()
getCurrentLocation()
getLastLocation returns the last known location of the device where, getCurrentLocation returns current location of the device by finding latest…

Faizan Ahmad
- 352
- 4
- 20
2
votes
1 answer
How can I mock position on Huawei with HMS
I'm trying to use Geofence module of Location Kit from HMSCore SDK in React Native, since it seems it's not working I wanted to test it by mocking the location. Following the docs I went to Developer Options > Select mock location app, but it…

kaskeeeee
- 61
- 4
2
votes
1 answer
HMS Map Kit - How to set camera zoom to current location?
I would like to make the map auto-focus to the current location and I've obtained the location via Location Kit.
fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);
Now, I was trying to set the latitude and…

jxhau
- 23
- 3
2
votes
2 answers
How to resolve the location permission error for Apps on Huawei device?
Huawei HMS core on my huawei phone do not have defualt permission, I am coding my app using HMS location kit and always got a permission error for Location kit. I followed their development guide to set up the location permission in the Manifest…

aravsi
- 35
- 4
2
votes
2 answers
HMS Location Kit, location updates working only if user select "Allow all the time"
i'm editing an Android application in order to use both GMS and HMS.
About Location Kit, i followed the docs and requested location updates, but task succeeds only when user give "Allow all the time" permission to location use.
In manifest i've…

ghevin
- 73
- 1
- 5
2
votes
3 answers
Huawei Location Kit - requestLocationUpdates does not stop even removeLocationUpdates was called
I'm using Huawei Location Kit. I have a problem where the GPS location icon is always in the notification bar even I have this function to stop requesting location updates.
private fun stopLocationUpdates() {
…

ccd
- 119
- 6
2
votes
2 answers
Cannot get com.huawei.hms.location.LocationServices for Huawei Map Kit in android studio
I am currently trying to migrate Google Maps to Huawei map kit in my android project.
It was easy to migrate google maps to Huawei map at first. They are provided all the methods and classes that Google Maps have but now I couldn't get…

Aytaj
- 67
- 6
1
vote
2 answers
(React Native) Huawei Location Kit - is there any way to know if network location services setting switch off?
to make our apps working indoor to fetch location we need Network Location Services switch to be on
And we're using this function to detect any setting that still off
We noticed the response which is LocationSettingsStates, when the switch on or…

Vina
- 139
- 7
1
vote
1 answer
Huawei Location Kit for React Native, addFusedLocationEventListener method doesn't trigger callback
Setup the huawei location kit for getting device position overtime when apps in use, followed the setup from https://developer.huawei.com/consumer/en/doc/HMS-Plugin-Guides-V1/config-agc-0000001050197382-V1
we don't have real huawei device, we're…

Vina
- 139
- 7
1
vote
1 answer
How to show current location in HMS map with custom marker option?
I have used HMS Map in my app. I am select some location using location kit search and displaying in map with custom marker. I can able to get Latitude and Longitude perfectly. Also i can display the selected location in map too before few days. But…

The Bala
- 1,313
- 1
- 15
- 23
1
vote
2 answers
problem with react native @hmscore/react-native-hms-location
i'm follwing @hmscore/react-native-hms-location documontation with react native, i'm trying to Continuously Obtaining the Location Information with the requestLocationUpdatesWithCallback() and addFusedLocationEventListener() functions
i can get…

Alaa Mokrani
- 166
- 1
- 11