1
liyang582 15 小时 43 分钟前
给一段你的代码?你用的是哪个 lib? 我了解有一些 location lib 确实会依赖 google play.
|
2
BeijingBaby OP @liyang582 用的是 expo-location 这个库,ios 下无任何问题,部分安卓机型会报上面的错误。
|
3
BeijingBaby OP |
4
BeijingBaby OP @BeijingBaby #3
``` const { coords } = await Location.getCurrentPositionAsync({ accuracy: Location.Accuracy.Low, }); ``` 的时候出现: [Error: Location request has been rejected: 17: API: LocationServices.API is not available on this device. Connection failed with: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}] |
5
chaselen 13 小时 30 分钟前
华为手机,可能要集成 HMS Core ?
|
7
BeijingBaby OP @chaselen #6 确实是华为,我看看这个库,thx
|