PhoneGap build plugin not working

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:

 <!-- Plugins --> <gap:plugin name="org.apache.cordova.device" /> <!-- Device plugin --> <gap:plugin name="com.phonegap.plugin.statusbar" /> <!-- Status bar plugin --> <gap:plugin name="com.verso.cordova.clipboard" /> <!-- Clipboard plugin --> <gap:plugin name="com.chariotsolutions.cordova.plugin.keyboard_toolbar_remover" /> <!-- Keyboard toolbar removal plugin --> <gap:plugin name="org.apache.cordova.splashscreen" /> <!-- Splashscreen plugin --> <gap:plugin name="org.apache.cordova.vibration" /> <!-- Vibration plugin --> 

Here are the links in the index.html file (if there is a problem, I think it will be here):

 <!-- PhoneGap Build --> <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) { // Hiding the status bar as even the fullscreen preference in config.xml isn't working StatusBar.hide(); window.setTimeout(function() { // Trying to hide the splash screen which also does not work (or even show) properly from config.xml navigator.splashscreen.hide(); }, 4000); }, "false"); 

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:

screenshot
(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.

+7
javascript ios cordova phonegap-build phonegap-plugins
source share
2 answers

I was able to fix this, realizing that I made a mistake in the config.xml file:

This: xmlns:gap = "http://phonegap.com/ns/1.0" was xmlns:gap = "http://phonegap.com/ns/3.1.0" , as I thought it was necessary to use Cordova 3.1.0, but actually it has nothing to do with it.

+3
source share

Place the config.xml file in the www directory. And then download only www.zip on build.phone.com.

-2
source share

All Articles