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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With