Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios上Geolocation.getCurrentPosition无地址信息 #129

Closed
techf139 opened this issue Oct 12, 2020 · 1 comment
Closed

ios上Geolocation.getCurrentPosition无地址信息 #129

techf139 opened this issue Oct 12, 2020 · 1 comment
Labels
bug Something isn't working ios Only for ios

Comments

@techf139
Copy link

为了节省大家的时间,请尽可能详细地说明问题,并最好提供截图(特别是出错信息)。
react-native-amap-geolocation 1.1.2
react 16.11.0
react-native 0.62.2
xcode 12.0
ios 14.0.1
使用Geolocation.getCurrentPosition获取定位信息,Android能正常获取地址数据:
image
ios只能获取经纬度,无地址信息:
image
在增加了setLocatingWithReGeocode(true)方法后 无任何打印信息,代码如下所示:
image
权限都正常申请。

@techf139 techf139 added bug Something isn't working ios Only for ios labels Oct 12, 2020
@techf139
Copy link
Author

为了节省大家的时间,请尽可能详细地说明问题,并最好提供截图(特别是出错信息)。
react-native-amap-geolocation 1.1.2
react 16.11.0
react-native 0.62.2
xcode 12.0
ios 14.0.1
使用Geolocation.getCurrentPosition获取定位信息,Android能正常获取地址数据:
image
ios只能获取经纬度,无地址信息:
image
在增加了setLocatingWithReGeocode(true)方法后 无任何打印信息,代码如下所示:
image
权限都正常申请。

已核实,是ios的appKey给错了,给的web api的key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ios Only for ios
Projects
None yet
Development

No branches or pull requests

1 participant