Comments (8)
locType:167的话是因为在android6+上需要处理动态权限,把targetsdk改为22或者在增加对动态权限的处理即可。
from cordova-plugin-baidumaplocation.
试了下,在5.1下出现和你一样的问题505,\n
"locTypeDescription": "NetWork location failed because baidu location service check the key is unlegal,
please check the key in AndroidManifest.xml !",\n "latitude": 5e-324,\n "lontitude": 5e-324,\n
"radius": 0,\n "userIndoorState": -1,\n "direction": -1\n}
from cordova-plugin-baidumaplocation.
跟android版本有关?低版本的不适配吗?
from cordova-plugin-baidumaplocation.
有没有解决办法?
from cordova-plugin-baidumaplocation.
发现是SHA1的问题,我用了这个检查到的SHA1和keystool获取的不一样,在百度的api控制台,修改SHA1后OK。你试试看是不是这个问题导致
from cordova-plugin-baidumaplocation.
另外在sdk大于等于23以上的时候,是有问题的,只能降低版本,一直出现 locType:167,动态权限导致问题,需要在插件中处理申请动态权限
from cordova-plugin-baidumaplocation.
申请动态权限,我就不知道怎么弄了,我先看看上面那个,多谢
from cordova-plugin-baidumaplocation.
@itshu @orthuslee 我实现了 Android 6.0+ 动态权限的支持,已发PR,可以先用我的试试看
https://github.com/KevinWang15/cordova-plugin-baidumaplocation
cordova plugin rm cordova-plugin-baidumaplocation
cordova plugin add https://github.com/KevinWang15/cordova-plugin-baidumaplocation --variable ANDROID_KEY="..." --variable IOS_KEY="..."
from cordova-plugin-baidumaplocation.
Related Issues (20)
- 4.X版本无法获取坐标信息(回调函数不执行) HOT 1
- 请问接口api与百度官方地图的一致吗
- ios定位问题
- ios 版本上无法进入回调方法 HOT 1
- @ionic-native插件添加 HOT 1
- 有小哥哥遇到过定位缓存的吗?重启gps才能更新位置 HOT 2
- android 6.4.0 ionic3 无法进入回调方法,没反应 HOT 3
- 求助!Xcode10.3 build报错! HOT 17
- 希望能支持离线定位获取经纬度;
- 和jpush 冲突
- ionic4 调用getCurrentPosition回调进不去 HOT 6
- 请教一下修改BaiduMapLocation.java的配置参数后如何将插件更新使用
- IOS 配合 background-mode 能在后台发送定位信息吗?
- 请问一下关于GPS状态返回的经纬度是经过转换还是WCG坐标?
- iOS 12.4 定位失败回调不执行,安卓完美
- ios 12.2-13.2 获取不到addr字段,坐标也有偏移 HOT 3
- 安卓调用getCurrentPosition无响应 HOT 7
- 能否添加watchPosition
- ios 定位不准确,偏差很大,怎么解决? HOT 1
- 插件定位之后,切换页面,切换两次之后就回调函数一直没有返回值,也没有报错
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 cordova-plugin-baidumaplocation.