Giter Site home page Giter Site logo

Comments (4)

gengen1988 avatar gengen1988 commented on June 27, 2024
  1. 不需要;
  2. 封装了 Baidu 的定位服务,没有使用 Android SDK 的;
  3. 需要你在 Baidu 上有个开发者帐号,注册一个自己的地理应用;

这个就是为了防止 Google 被墙而导致的 GPS 无法定位的插件。内部的网络定位用的是百度的服务而不是 Android 设备自带的,因此需要先去百度注册自己的应用。

from cordova-plugin-baidu-geolocation.

poorbug avatar poorbug commented on June 27, 2024

谢谢回复!

我使用的AK是android端的

目前测试了几个机型,结果如下

定位成功:

  1. 联想K910(4.4.2)
  2. 红米(4.2.2)
  3. nexus4(5.1.1)

定位失败:

  1. 魅蓝note(4.4.4)
  2. 华为P8(5.0.2)
  3. 华为mate7(4.2.2)

应该是和品牌有关系,和安卓版本无关

from cordova-plugin-baidu-geolocation.

gengen1988 avatar gengen1988 commented on June 27, 2024

作为临时的解决方案你可以在定位失败的机型里用官方的插件(或者根本不用插件,官方的插件就是一个空实现)。

如果可以用,临时发布两个版本。在这段时间里,从 Android 的日志里寻找为何无法定位的原因。

可以用 adb logcat 来查看日志。

from cordova-plugin-baidu-geolocation.

poorbug avatar poorbug commented on June 27, 2024

这个问题先搁置了,如果我有啥解决方案或者问题再来回复~谢谢了

from cordova-plugin-baidu-geolocation.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.