我正在关注 @hmscore/react-native-hms-location 文档和 react native,我正在尝试使用 requestLocationUpdatesWithCallback() 和 addFusedLocationEventListener() 函数持续获取位置信息我可以从 requestLocationUpdatesWithCallback() 获取请求代码但是addFusedLocationEventListener() 什么都不返回,就像它没有触发一样
HMSLocation.FusedLocation.Native.requestLocationUpdatesWithCallbackEx(locationRequest)
.then((res) => console.log(res))
.catch((err) => alert(err.message))
////////////////////////
HMSLocation.FusedLocation.Events.addFusedLocationEventListener(handleLocationUpdate)
/////////////////////
const handleLocationUpdate = (locationResult) => console.log(locationResult)
任何解决方案