title: How do I use PhoneGap's soft keyboard (org.apache.cordova.plugin.softkeyboard)?
body: <p>I'm writing my first PhoneGap app, and I need to make the keyboard appear and disappear programmatically. Unfortunately, it's not working, but I wonder if I'm doing it correctly. Here's the state of things:</p>
  
  <p>I used <code>$ cordova plugin search keyboard</code> to find this plugin at the command line, and then I installed it like this:</p>
  
  <p><code>$ cordova plugin add org.apache.cordova.plugin.softkeyboard
  Fetching plugin "org.apache.cordova.plugin.softkeyboard" via plugin registry
  Installing "org.apache.cordova.plugin.softkeyboard" for android</code></p>
  
  <p>Based on <a href="https://stackoverflow.com/a/12957828/3614438">another SO answer</a>, I then added this line to my config.xml:</p>
  
  <p><code>&lt;plugin name="SoftKeyBoard" value="org.apache.cordova.plugin.SoftKeyBoard" /&gt;</code></p>
  
  <p>I put softkeyboard.js in myapp/www/js/, and I referenced it in the html like so:</p>
  
  <p><code>&lt;script type="text/javascript" charset="utf-8" src="js/softkeyboard.js"&gt;&lt;/script&gt;</code></p>
  
  <p>After installing, SoftKeyboard.java appeared in myapp/plugins/org.apache.cordova.plugin.softkeyboard . But just for good measure I also put a copy in myapp/src/org/apache/cordova/plugin/ .</p>
  
  <p>Finally, I added these to my html:</p>
  
  <p><code>&lt;button id="keyboard"&gt;Toggle Keyboard&lt;/button&gt;</code></p>
  
  <p>and</p>
  
  <p><code>&lt;script&gt;
     var softkeyboard = window.cordova.plugins.SoftKeyBoard;
     $('#keyboard').toggle(softkeyboard.show, softkeyboard.hide);
  &lt;/script&gt;</code></p>
  
  <p>As you might have guessed, nothing happened when I rebuilt and clicked the button. What should I be doing differently?</p>
  
  <p>Thanks!</p>
  
  <p>P.S. - After seeing plugin (singular) and plugins (plural) used in so many SO answers, I renamed everything both ways and that didn't affect the outcome. </p>