Cordova geolocation plugin not getting location from GPS for Android

我怕爱的太早我们不能终老 提交于 2019-12-06 02:56:46

They are using HTML5 geolocation implementation instead of native code. They removed the android java code on release 0.3.7 of the plugin

### 0.3.7 (Apr 17, 2014)
* CB-6422: [windows8] use cordova/exec/proxy
* CB-6212: [iOS] fix warnings compiled under arm64 64-bit
* CB-5977: [android] Removing the Android Geolocation Code.  Mission Accomplished.
* CB-6460: Update license headers
* Add NOTICE file

If you want to use an older version of the plugin where the native code was used you can install it like this

cordova plugin add org.apache.cordova.geolocation@0.3.6
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!