Comments (4)
- 不需要;
- 封装了 Baidu 的定位服务,没有使用 Android SDK 的;
- 需要你在 Baidu 上有个开发者帐号,注册一个自己的地理应用;
这个就是为了防止 Google 被墙而导致的 GPS 无法定位的插件。内部的网络定位用的是百度的服务而不是 Android 设备自带的,因此需要先去百度注册自己的应用。
from cordova-plugin-baidu-geolocation.
谢谢回复!
我使用的AK是android端的
目前测试了几个机型,结果如下
定位成功:
- 联想K910(4.4.2)
- 红米(4.2.2)
- nexus4(5.1.1)
定位失败:
- 魅蓝note(4.4.4)
- 华为P8(5.0.2)
- 华为mate7(4.2.2)
应该是和品牌有关系,和安卓版本无关
from cordova-plugin-baidu-geolocation.
作为临时的解决方案你可以在定位失败的机型里用官方的插件(或者根本不用插件,官方的插件就是一个空实现)。
如果可以用,临时发布两个版本。在这段时间里,从 Android 的日志里寻找为何无法定位的原因。
可以用 adb logcat
来查看日志。
from cordova-plugin-baidu-geolocation.
这个问题先搁置了,如果我有啥解决方案或者问题再来回复~谢谢了
from cordova-plugin-baidu-geolocation.
Related Issues (5)
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-baidu-geolocation.