Note that there are some explanatory texts on larger screens.

plurals
  1. POPhoneGap Build Plugins not working
    primarykey
    data
    text
    <p>I am building a PhoneGap Build app and I will be requiring some plugins. I have followed the docs yet none are working. Since none of them are working I suppose it's a common problem. Here's the plugins in the <code>config.xml</code> file: </p> <pre><code>&lt;!-- Plugins --&gt; &lt;gap:plugin name="org.apache.cordova.device" /&gt; &lt;!-- Device plugin --&gt; &lt;gap:plugin name="com.phonegap.plugin.statusbar" /&gt; &lt;!-- Status bar plugin --&gt; &lt;gap:plugin name="com.verso.cordova.clipboard" /&gt; &lt;!-- Clipboard plugin --&gt; &lt;gap:plugin name="com.chariotsolutions.cordova.plugin.keyboard_toolbar_remover" /&gt; &lt;!-- Keyboard toolbar removal plugin --&gt; &lt;gap:plugin name="org.apache.cordova.splashscreen" /&gt; &lt;!-- Splashscreen plugin --&gt; &lt;gap:plugin name="org.apache.cordova.vibration" /&gt; &lt;!-- Vibration plugin --&gt; </code></pre> <p>Here's the links in the <code>index.html</code> file (if there's a problem my best guess is that it will be here): </p> <pre><code>&lt;!-- PhoneGap Build --&gt; &lt;script src="phonegap.js"&gt;&lt;/script&gt; &lt;script src="device.js"&gt;&lt;/script&gt; &lt;script src="statusbar.js"&gt;&lt;/script&gt; &lt;script src="clipboard.js"&gt;&lt;/script&gt; &lt;script src="keyboard_toolbar_remover.js"&gt;&lt;/script&gt; &lt;script src="splashscreen.js"&gt;&lt;/script&gt; &lt;script src="vibration.js"&gt;&lt;/script&gt; </code></pre> <p>None are working except the device plugin (firing the 'deviceready' event).</p> <p>Here's some code from the javascript file: </p> <pre><code>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 doesn't work (or even show) properly from config.xml navigator.splashscreen.hide(); }, 4000); }, "false"); </code></pre> <p>I tested this function with an alert and I can assure you that it does get called. Here's some more: </p> <pre><code>// 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(); }); }); } </code></pre> <p>This is for vibrations:</p> <pre><code>navigator.notification.vibrate(2500); </code></pre> <p>This is for hiding the keyboard toolbar once an input field called <code>#convertThis</code> has <code>focus()</code>:</p> <pre><code>$("#convertThis").focus(function() { toolbar.hide() }); </code></pre> <p>I tried removing the js links in <code>index.html</code> yet still nothing. I also tried putting the plugin tags outside the widget tag in <code>config.xml</code> and... NOTHING! Weirdly enough, the plugins tab in PhoneGap Build dashboards says none are installed:</p> <p><a href="http://www.uzusoft.com/screenshot.png">screenshot http://www.uzusoft.com/screenshot.png</a></p> <p>If you can provide any help on the matter, please do! Also on the config.xml issues please.</p> <p><strong>UPDATE:</strong> I am currently using PhoneGap Build 3.1.0 is order to support iOS 7.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload