While updating to the latest nightlybuild (805), when launching my app on desktop (browser), I got this:
Error: [$injector:unpr] Unknown provider: $cordovaProvider
http://errors.angularjs.org/1.3.4/$injector/unpr?p0=%24cordovaProvider
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:7300:12
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:11187:19
at getService (http://localhost:8100/lib/ionic/js/ionic.bundle.js:11334:39)
at Object.invoke (http://localhost:8100/lib/ionic/js/ionic.bundle.js:11366:13)
at runInvokeQueue (http://localhost:8100/lib/ionic/js/ionic.bundle.js:11281:35)
at http://localhost:8100/lib/ionic/js/ionic.bundle.js:11290:11
at forEach (http://localhost:8100/lib/ionic/js/ionic.bundle.js:7559:20)
at loadModules (http://localhost:8100/lib/ionic/js/ionic.bundle.js:11271:5)
at createInjector (http://localhost:8100/lib/ionic/js/ionic.bundle.js:11197:11)
at doBootstrap (http://localhost:8100/lib/ionic/js/ionic.bundle.js:8671:20)
Iām suffering terrible from the same issue. Please will you (or someone) tell exactly what the fix is? What do we have import instead of $cordova or $cordovaProvider? Thanks!
Actually, what I trying to do is to get this recipe to work (as I need to access some other native Android code from Ionic, but I think that Itās better to start with something simple):
Hi Michael (also if others know about this then please answer)
Are you sure that itās only possible if I use the $cordovaFacebook plugin. I canāt see that my app has anything to do with Facebook, as I only need to access my own Android code?
Thanks for your reply. Iāve found that to solve my problem Iāll build my app in another way, and then when I have time for it then I will learn all I need about Cordova plugins! So just forget about it.
What may help? I updated my ionic and bower few days back and everything has got fucked up! Really frustrating when everything was working fine and now Iāve no idea about the root cause of issues as a lot of things stopped working! Please help?
I had a similar problem, I updated and then suddenly I was getting the āUnknown provider: $cordovaOauthProvider <- $cordovaOauthā.
It turns out that in ngCordova now provides ngCordovaOauth separately. In the ālib/ngCordova/README.mdā file it reads: - Oauth (available separately)
So, first installed ng-cordova-oauth
$ bower install ng-cordova-oauth -S
Then, I included the file in my appās index.html