Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova_Plugins.js Not Found

I am running Cordova 2.9.1 for iOS. When I run my app in the browser, the console says I am missing cordova_plugins.js.

What is that? How do I get it?

Is that the reason none of my plugins are working at all?

Thanks!

like image 878
user3630775 Avatar asked Jun 13 '14 23:06

user3630775


1 Answers

Have you added the "browser" platform to your Cordova project?

cordova platform add browser

After which, you need to build the Cordova project:

cordova build browser

You'll notice the platforms/browser/www folder exists and contains a cordova_plugins.js file.

At this point, you need to "serve" files to your web browser from that folder (to test your app using a web browser). I use Grunt and the NodeStatic task for this purpose.

Hope this helps! Let me know if you have any questions, take care.

like image 181
Kyle Avatar answered Sep 28 '22 07:09

Kyle