I just started using cordova with android.
I have a problem adding plugins.
I used the cordova plugin to add org.apache.cordova.camera from cmd to Win7. It is added, but not to the cordova_plugins.js file.
The file is updated when I type corova run android in cmd, but then all my code is deleted and replaced with a skeletal web application. Why is this happening? How to automatically update this file?
This is what my cordova_plugins.js looks like:
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/org.apache.cordova.dialogs/www/notification.js", "id": "org.apache.cordova.dialogs.notification", "merges": [ "navigator.notification" ] }, { "file": "plugins/org.apache.cordova.dialogs/www/android/notification.js", "id": "org.apache.cordova.dialogs.notification_android", "merges": [ "navigator.notification" ] }, { "file": "plugins/org.apache.cordova.vibration/www/vibration.js", "id": "org.apache.cordova.vibration.notification", "merges": [ "navigator.notification" ] } ]; module.exports.metadata = // TOP OF METADATA { "org.apache.cordova.dialogs": "0.2.5", "org.apache.cordova.vibration": "0.3.6" } // BOTTOM OF METADATA });
As you can see, there is no camera plugin. It is added to my project, but not in this file, and for this reason it does not work when I try to use it in my js files.
I hope you understand what I'm talking about.
android cordova phonegap-plugins
consigliere
source share