Comments (6)
注意事项
Access WiFi Information
权限。
Android:需要正确的设置 apiKey,获取 Key 的方法
官方获取 Key方法:https://lbs.amap.com/api/android-location-sdk/guide/create-project/get-key
A. 使用 keytool
(jdk自带工具)获取 SHA1
,默认 测试版本 keystore
路径 <项目名称>/android/app/debug.keystore
keytool -v -list -keystore keystore文件路径
B. 获取 PackageName
,获取路径 <项目名称>/android/app/src/main/AndroidManifest.xml
C. 在高德地图账号中设置 SHA1
和 PackageName
。
D. 按照上面步骤正确设置你的 apiKey
才会起作用。
Android:无法获取逆地理信息的问题,KEY鉴权失败
@cctvmikeowen 注意看文档
from react-native-amap-geolocation.
是真机调试的,debug和release 的appkey都设置了,核对是正确的, 权限也加了,还是返回null,连定位的授权对话框都不会弹,rn 0.64,安装采用yarn add @uiw/react-native-amap-geolocation,请问是哪里不对吗?
from react-native-amap-geolocation.
是真机调试的,debug和release 的appkey都设置了,核对是正确的, 权限也加了,还是返回null,连定位的授权对话框都不会弹,rn 0.64,安装采用yarn add @uiw/react-native-amap-geolocation,请问是哪里不对吗?
from react-native-amap-geolocation.
我没有办法帮你解决,我只能告诉你我的文档里面研究成果,按照这个核对。
from react-native-amap-geolocation.
你好,好像android,的有个bug,参照基本用法,js端调用AMapGeolocation.getCurrentLocation,映射到java端, @ReactMethod
public void getCurrentLocation(final Promise promise) {
try {
if (client == null) {
promise.reject("-1", "尚未调用 setApiKey() 进行初始化");
return;
}
if (!client.isStarted()) {
client.startLocation();
}
// System.out.println(mLastAMapLocation);
promise.resolve(toJSON(mLastAMapLocation));
client.stopLocation();
} catch (Exception e) {
promise.reject("-110", e.getMessage());
}
},此时mLastAMapLocation 是null的
from react-native-amap-geolocation.
SDK 监听没有接收到位置信息。
from react-native-amap-geolocation.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-amap-geolocation.