title: Making the calls directly from java to javascript with Phonegap
body: <p>I'm writing a native plugin to raise an event in JavaScript when the keyboard is showing. I do this:</p>
  
  <pre><code>appView.sendJavascript("cordova.fireWindowEvent('show_keyboard')")
  </code></pre>
  
  <p>In my JavaScript I then do something like:</p>
  
  <pre><code>window.addEventListener('show_keyboard', handler);
  </code></pre>
  
  <p>However, this has been flagged as a big no no in PhoneGap by a PhoneGap expert on the team. What is wrong with this approach?</p>