1
votes

I am trying to use Huawei Location Kit(Fused Location Service) to get longitude and latitude. But the response I get back are all null. 

Then, I call the requestLocationUpdates() method to obtain the device location and update the cache. But I got PlatformException. May I know why?

enter image description here

enter image description here

My current code to use Huawei Location Kit:

enter image description here

enter image description here

enter image description here

enter image description here

If the system cache does not contain location information, the system returns a null value. so need to obtain location information through RequestLocationUpdates. The 10806 error indicates that the interface is not open to the public. Could you please post the screenshot of the invoking code and the parameter configuration of locationRequest to us for checking this issue?shirley
Hi, I have updated my post with some screenshots of my code. Thanks. @shirleyFoody