title: phonegap navigator.notification.alert doesn't work
body: <p>The title is self explanatory, I ca't figure out why tho.</p>
  
  <p>sources:
  www/index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;meta name="format-detection" content="telephone=no" /&gt;
          &lt;meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /&gt;
          &lt;link rel="stylesheet" type="text/css" href="css/index.css" /&gt;
          &lt;title&gt;Hello World&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="app"&gt;
              &lt;h1&gt;PhoneGap&lt;/h1&gt;
              &lt;div id="deviceready" class="blink"&gt;
                  &lt;p class="event listening"&gt;Connecting to Device&lt;/p&gt;
                  &lt;p class="event received"&gt;Device is Ready&lt;/p&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;script type="text/javascript" src="phonegap.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
          &lt;script type="text/javascript"&gt;
              app.initialize();
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>index.js:</p>
  
  <pre><code>var app = {
      // Application Constructor
      initialize: function() {
          this.bindEvents();
      },
      // Bind Event Listeners
      //
      // Bind any events that are required on startup. Common events are:
      // 'load', 'deviceready', 'offline', and 'online'.
      bindEvents: function() {
          document.addEventListener('deviceready', this.onDeviceReady, false);
      },
      // deviceready Event Handler
      //
      // The scope of 'this' is the event. In order to call the 'receivedEvent'
      // function, we must explicity call 'app.receivedEvent(...);'
      onDeviceReady: function() {
          app.receivedEvent('deviceready');
      },
      // Update DOM on a Received Event
      receivedEvent: function(id) {
          var parentElement = document.getElementById(id);
          var listeningElement = parentElement.querySelector('.listening');
          var receivedElement = parentElement.querySelector('.received');
  
          listeningElement.setAttribute('style', 'display:none;');
          receivedElement.setAttribute('style', 'display:block;');
  
          console.log('Received Event: ' + id);
  
          navigator.notification.alert('PhoneGap Alert', null, 'Title', 'Button');
      }
  };
  </code></pre>
  
  <p>config.xml in android/res/xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="io.cordova.helloCordova" version="2.0.0" xmlns="http://www.w3.org/ns/widgets"&gt;
      &lt;name&gt;Hello Cordova&lt;/name&gt;
      &lt;description&gt;
          A sample Apache Cordova application that responds to the deviceready event.
      &lt;/description&gt;
      &lt;author email="dev@cordova.apache.org" href="http://cordova.io"&gt;
          Apache Cordova Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;feature name="App"&gt;
          &lt;param name="android-package" value="org.apache.cordova.App" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Notification"&gt;
          &lt;param name="android-package" value="org.apache.cordova.Notification" /&gt;
      &lt;/feature&gt;
      &lt;access origin="http://127.0.0.1*" /&gt;
      &lt;preference name="useBrowserHistory" value="true" /&gt;
      &lt;preference name="exit-on-suspend" value="false" /&gt;
      &lt;preference name="permissions" value="none" /&gt;
      &lt;preference name="orientation" value="default" /&gt;
      &lt;preference name="target-device" value="universal" /&gt;
      &lt;preference name="fullscreen" value="true" /&gt;
      &lt;preference name="webviewbounce" value="true" /&gt;
      &lt;preference name="prerendered-icon" value="true" /&gt;
      &lt;preference name="stay-in-webview" value="false" /&gt;
      &lt;preference name="ios-statusbarstyle" value="black-opaque" /&gt;
      &lt;preference name="detect-data-types" value="true" /&gt;
      &lt;preference name="show-splash-screen-spinner" value="true" /&gt;
      &lt;preference name="auto-hide-splash-screen" value="true" /&gt;
      &lt;preference name="disable-cursor" value="false" /&gt;
      &lt;preference name="android-minSdkVersion" value="8" /&gt;
      &lt;preference name="android-installLocation" value="auto" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>and androidmanifest.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.acs.acs_mobile" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="main" android:theme="@android:style/Theme.Black.NoTitleBar"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
      &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I'm trying to figure out why it doesn't work with no luck for the past hours.
  I'm realtivley new to phonegap so please If I'm missing something let me know...</p>
  
  <p>PS. Phonegap -version : 3.0.0-0.14.3 , device sdk 8 , AVD sdk 8 (both same result)</p>
  
  <p><strong>Update</strong> after wrapping the code inside a try catch I got this error message:</p>
  
  <pre><code>result of expression 'navigator.notification' undefined is not an object
  </code></pre>
  
  <p>AS mentioned in <a href="https://stackoverflow.com/questions/10214304/phonegap-sample-application-for-android-does-not-work">PhoneGap sample application for android does not work</a> and 
  <a href="https://stackoverflow.com/questions/3006409/navigator-notification-fails-navigator-notification-undefined-is-not-an-obj">navigator.notification.* fails &quot;navigator.notification [undefined] is not an object&quot;</a></p>
  
  <p>The cause is : <code>Likely the name of phonegap*js or cordova*js in your index.html does not match the file name in the assets/www directory.</code> but I only have phonegap.js and cordova.js in platforms/android/assets/www and I'm including with the exact same name... Still can't figure this out...</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>If I do a remote build the app is working ok with local build it doesn;t altho I have installed the plugins as mentioned for version 3</p>