title: cordova audio recording is not firing , saying navigator.device is undefined
body: <p>I am creating  an  application  using cordova to record the voice  and save in phone  and 
      i  followed the  instruction in link<br>
      1)<a href="http://plugins.cordova.io/#/package/org.apache.cordova.media-capture" rel="nofollow">http://plugins.cordova.io/#/package/org.apache.cordova.media-capture</a>
      2)<a href="https://cordova.apache.org/docs/en/3.0.0/cordova_device_device.md.html" rel="nofollow">https://cordova.apache.org/docs/en/3.0.0/cordova_device_device.md.html</a><br>
       but it is saying that  navigator.device is not defined <br>
       added the plugin  regarding  the device <code>cordova plugin add org.apache.cordova.device</code>, but  it is still showing the same error.<br><br>
   and in Xml  (in app/res/xml/config.xml)<br></p>
  
  <pre><code>&lt;feature name="Device"&gt;
      &lt;param name="android-package" value="org.apache.cordova.Device" /&gt;
  &lt;/feature&gt;
  (in app/AndroidManifest.xml)
  &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
  </code></pre>
  
  <p>still it is showing  <code>navigator.device is undefined</code> <br>
      and my code is </p>
  
  <pre><code>    function Fnrecord() {
          debugger;
  
          OpenModalDialog('Alert', 'Voice Recording' + navigator.device +, '80%', '20%');
          navigator.device.capture.captureAudio(captureSuccess, captureError, { limit: 2 });
  
          function captureSuccess(mediaFiles) {
              var i, len;
              for (i = 0, len = mediaFiles.length; i &lt; len; i += 1) {
                  uploadFile(mediaFiles[i]);
              }
          }
          // Called if something bad happens.
          //
          function captureError(error) {
              var msg = 'An error occurred during capture: ' + error.code;
              //  navigator.notification.alert(msg, null, 'Uh oh!');
              OpenModalDialog('Alert', msg, '80%', '20%');
          }
  
          // A button will call this function
          //
          function captureAudio() {
              debugger;
              var capture = navigator.device.capture;
              OpenModalDialog('Alert', 'Voice Recording' + capture, '80%', '20%');
              // Launch device audio recording application,
              // allowing user to capture up to 2 audio clips
              navigator.device.capture.captureAudio(captureSuccess, captureError, { limit: 2 });
          }
  
          // Upload files to server
          function uploadFile(mediaFile) {
              var ft = new FileTransfer(),
                  path = mediaFile.fullPath,
                  name = mediaFile.name;
  
              ft.upload(path,
                  "http://my.domain.com/upload.php",
                  function (result) {
                      console.log('Upload success: ' + result.responseCode);
                      console.log(result.bytesSent + ' bytes sent');
                  },
                  function (error) {
                      console.log('Error uploading file ' + path + ': ' + error.code);
                  },
                  { fileName: name });
          }
  
      }
  </code></pre>