title: Setup SoftKeyBoard Cordova Plugin
body: <p>I would like to hide the softkeyboard onBlur.</p>
  
  <p>Therefore, I found the <a href="https://github.com/nikhilben/phonegap-plugins/tree/master/Android/SoftKeyboard" rel="nofollow">softkeyboard plugin</a>, and I suppose I installed it properly, following numerous threads posts.</p>
  
  <p>However, this is the first time I use a plugin for cordova, and I get this error, so I guess something is missing:</p>
  
  <p><code>Cannot read property 'SoftKeyBoard' of undefined</code></p>
  
  <p>This refers to the js call in the html file:</p>
  
  <pre><code>var softkeyboard = window.cordova.plugins.SoftKeyBoard;
  $('#keyboard').toggle(softkeyboard.show, softkeyboard.hide);
  </code></pre>
  
  <p>Does not <code>window.cordova.plugins</code> exist?</p>
  
  <p>In order to set up the plugin, I did the following:</p>
  
  <ul>
  <li>copy <code>SoftKeyBoard.java</code> to <code>src/org.apache.cordova.plugins.SoftKeyBoard</code>. I also rewrote the first line <code>package</code> accordingly.</li>
  <li>copy the js file, and link it to the html file</li>
  <li><p>add this line to <code>res/xml/config.xml</code>:</p>
  
  <pre><code>&lt;plugin name="SoftKeyBoard" value="org.apache.cordova.plugins.SoftKeyBoard" /&gt;
  </code></pre>
  
  <p>In this XML, it's located in <code>&lt;cordova&gt;&lt;plugins&gt;</code></p></li>
  </ul>
  
  <p>Is there anything else I should have done?</p>