I am creating a PhoneGap Build application and I will need some plugins. I followed the documents, but no one works. Since none of them work, I suppose this is a common problem. Here are the plugins in the config.xml file:
<gap:plugin name="org.apache.cordova.device" /> <gap:plugin name="com.phonegap.plugin.statusbar" /> <gap:plugin name="com.verso.cordova.clipboard" /> <gap:plugin name="com.chariotsolutions.cordova.plugin.keyboard_toolbar_remover" /> <gap:plugin name="org.apache.cordova.splashscreen" /> <gap:plugin name="org.apache.cordova.vibration" />
Here are the links in the index.html file (if there is a problem, I think it will be here):
<script src="phonegap.js"></script> <script src="device.js"></script> <script src="statusbar.js"></script> <script src="clipboard.js"></script> <script src="keyboard_toolbar_remover.js"></script> <script src="splashscreen.js"></script> <script src="vibration.js"></script>
No one works except for the device plugin (triggering the event 'deviceready').
Here is some code from the JavaScript file:
document.addEventListener("deviceready", function(e) {
I tested this function with a warning and I can assure you that it is being called. Here are some more:
// This is for the clipboard plugin function handleCopyAndPaste() { $(".copyButton").click(function() { window.plugins.clipboard.copy($("#result").val()); }); $(".pasteButton").click(function() { window.plugins.clipboard.paste(function (text) { $("#convertThis").val(text); convert(); }); }); }
This is for vibration:
navigator.notification.vibrate(2500);
This is to hide the keyboard toolbar when the input field named #convertThis has focus() :
$("#convertThis").focus(function() { toolbar.hide() });
I tried to remove js links in index.html , but still nothing worked. I also tried putting the plugin tags outside the widget tag in config.xml and ... NOTHING! Oddly enough, the plugins tab in the PhoneGap Build dashboard says that none of them are installed:

(source: uzusoft.com )
If you can provide any help on this, please do it! Also about config.xml problems, please.
UPDATE: I am currently using PhoneGap Build 3.1.0 to support iOS 7.
javascript ios cordova phonegap-build phonegap-plugins
Youssef moawad
source share