title: Uncaught TypeError: Cannot read property 'statusBarNotification' of undefined
body: <p>I'm using cordova 2.1.0, and am trying to add a notification to the status bar.</p>
  
  <p>I'd included the related java files and js script into the project, and added the following line in the config.xml</p>
  
  <pre><code>&lt;plugin name="StatusBarNotification" value="com.phonegap.plugins.statusBarNotification.StatusBarNotification"/&gt;
  </code></pre>
  
  <p>In my html code, I'd added the following lines in my head tag</p>
  
  <pre><code>&lt;script src="cordova-2.1.0.js"/&gt;
  &lt;script src="statusbarnotification.js"/&gt;
  </code></pre>
  
  <p>and at the bottom of the content div page, i'd added the following script</p>
  
  <pre><code>&lt;script&gt;
  window.plugins.statusBarNotification.notify("Message Header", "Message details");
  &lt;/script&gt;
  </code></pre>
  
  <p>However when i run it in emulator for android 4.0, i'm hitting the error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property 'statusBarNotification' of undefined</p>
  </blockquote>
  
  <p>Anyone has encounter this issue before?</p>