louisbl / cordova-plugin-gpslocation

Native GPS Location for Cordova - Android
Apache License 2.0
20 stars 25 forks source link

what the difference between by the official geolocation plugin #1

Closed bau720123 closed 9 years ago

bau720123 commented 9 years ago

hi @louisbl what the difference between by the official geolocation plugin http://plugins.cordova.io/#/package/org.apache.cordova.geolocation

louisbl commented 9 years ago

The cordova geolocation plugin does not use Android code anymore : https://issues.apache.org/jira/browse/CB-5977. It relies on the geolocation capability of the WebView. This plugin use the Android location API and force the use of the GPS provider.

In some case it's more convenient and/or more accurate to have only the GPS provider and not rely on network signals.

FYI there is also a locations services plugin which use the Google Location Services API.