Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Cordova geolocation plugin not working

$
0
0

@VolvoOlympian wrote:

I am following the guide here at http://ngcordova.com/docs/plugins/geolocation/ to get lat and lng of the user.
I copied the sample code there and when I call getCurrentPosition() I get this error in console:
unknown provider: $cordovaGeolocation Provider

Am I missing something?

P.S. and this is the list of plugins I have installed:
com.google.playservices 23.0.0 "Google Play Services for Android"
com.googlemaps.ios 1.9.2 "Google Map iOS SDK for Cordova"
com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-console 1.0.1 "Console"
cordova-plugin-crosswalk-webview 1.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-splashscreen 3.0.0 "Splashscreen"
cordova-plugin-whitelist 1.2.0 "Whitelist"
org.apache.cordova.geolocation 0.3.12 "Geolocation"

Posts: 6

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>