eteng-osp / cordova-plugin-baidu-geolocation Goto Github PK
View Code? Open in Web Editor NEWHybrid App Geolocation in China
License: MIT License
Hybrid App Geolocation in China
License: MIT License
watchPosition
的onsuccess
只被回调一次。原因是BDGeolocation.setOptions
里没有设置LocationClientOption.setLocationNotify(true)
。
有人遇到这个问题么。。望指教。。
请测试一下安装的情况,检查安装 cordova 版本与 cordova-android 版本:
来源:daa4d17#commitcomment-14448056
安装的时候,提示
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-baidu-geolocation':TypeError: Uh oh!
Object # has no method 'parse'
at module.exports.common.js-module.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:131:71)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:653:27
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25)
at PlatformApiPoly.addPlugin (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:259:20)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:603:6)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:382:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
问题1:
需要添加cordova-plugin-geolocation插件吗?
问题2:
这个是封装了android 定位SDK吗?
问题3:
除了conig.xml添加配置外,还需要什么其他配置吗?
安卓获取不到GPS定位,据说是因为Google被墙?我不会写安卓代码,定位这个问题已经困扰我好几天了。。。
android7.0 手机型号:三星s8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.