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"
I did that on both android emulator and real device. And I cannot even get into the view that belongs to the controller.
When I test in browser, I also cant get into that view, but I can see the error message in the console though.