title: Cordova plugins not working
body: <p><em>Edit for clarification:</em>
  <strong>The <code>&lt;name&gt;</code> you see in some of the files below is not actually part of the files, but it includes the company name which I had to censor.</strong></p>
  
  <p>Test situation:</p>
  
  <ul>
  <li>Cordova 4</li>
  <li>OS X Yosemite</li>
  <li>Android 4.4 device (coupled with USB)</li>
  <li>Using Terminal; not Eclipse</li>
  </ul>
  
  <p>What happens:
  Using <code>cordova run --release</code> successfully builds and signs the .apk and the mobile device installs and opens it without issues. But, none of the plugins work. For example:</p>
  
  <pre><code>    title.on('click', function() {
          if (!navigator.camera) {
              alert('no camera!');
          } else {
              navigator.camera.getPicture(function success(data) {
              // do something
              }, function error(data) {});
          }
      });
  </code></pre>
  
  <p>Always alerts that there is no camera, which means Cordova did not add a <code>camera</code> object to the <code>window.navigator</code> object.</p>
  
  <p>Below is some information about my cordova installation and some xml files, as far as I can tell nothing looks out of place. Note that it is not just the camera that does not work, I just used it as an example.</p>
  
  <p>Cordova info:</p>
  
  <pre><code>Node version: v0.10.29
  
  Cordova version: 4.0.1-nightly.2014.9.29
  
  Config.xml file: 
  
  &lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.&lt;name&gt;.App" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;&lt;name&gt; Mini&lt;/name&gt;
      &lt;description&gt;
          De &lt;name&gt; app voor je telefoon
      &lt;/description&gt;
      &lt;author email="stephan@&lt;name&gt;.nl" href="https://&lt;name&gt;.nl"&gt;
          Het &lt;name&gt; Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="2000" /&gt;
  &lt;/widget&gt;
  
  
  Plugins: 
  
  org.apache.cordova.camera,org.apache.cordova.dialogs,org.apache.cordova.file,org.apache.cordova.file-transfer,org.apache.cordova.media,org.apache.cordova.media-capture,org.apache.cordova.splashscreen,org.apache.cordova.vibration
  
  Android platform:
  
  Available Android targets:
  ----------
  id: 1 or "android-19"
       Name: Android 4.4.2
       Type: Platform
       API level: 19
       Revision: 4
       Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
   Tag/ABIs : default/armeabi-v7a, default/x86
  </code></pre>
  
  <p>cordova/config.xml</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.&lt;name&gt;.App" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;name&gt;&lt;name&gt; Mini&lt;/name&gt;
      &lt;description&gt;
          De &lt;name&gt; app voor je telefoon
      &lt;/description&gt;
      &lt;author email="stephan@&lt;name&gt;.nl" href="https://&lt;name&gt;.nl"&gt;
          Het &lt;name&gt; Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="2000" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>cordova/platforms/android/AndroidManifest.xml
  &lt;</p>
  
  <pre><code>?xml version='1.0' encoding='utf-8'?&gt;
  &lt;manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.kaartje2go.App" 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;application 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/activity_name" android:launchMode="singleTop" android:name="CordovaApp" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="adjustResize"&gt;
              &lt;intent-filter android:label="@string/launcher_name"&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="10" android:targetSdkVersion="19" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_VIDEO" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>cordova/platforms/android/res/xml/config.xml</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;widget id="com.&lt;name&gt;.App" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"&gt;
      &lt;preference name="loglevel" value="DEBUG" /&gt;
      &lt;feature name="Camera"&gt;
          &lt;param name="android-package" value="org.apache.cordova.camera.CameraLauncher" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Notification"&gt;
          &lt;param name="android-package" value="org.apache.cordova.dialogs.Notification" /&gt;
      &lt;/feature&gt;
      &lt;feature name="File"&gt;
          &lt;param name="android-package" value="org.apache.cordova.file.FileUtils" /&gt;
          &lt;param name="onload" value="true" /&gt;
      &lt;/feature&gt;
      &lt;feature name="FileTransfer"&gt;
          &lt;param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Media"&gt;
          &lt;param name="android-package" value="org.apache.cordova.media.AudioHandler" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Capture"&gt;
          &lt;param name="android-package" value="org.apache.cordova.mediacapture.Capture" /&gt;
      &lt;/feature&gt;
      &lt;feature name="SplashScreen"&gt;
          &lt;param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" /&gt;
      &lt;/feature&gt;
      &lt;feature name="Vibration"&gt;
          &lt;param name="android-package" value="org.apache.cordova.vibration.Vibration" /&gt;
      &lt;/feature&gt;
      &lt;name&gt;&lt;name&gt; Mini&lt;/name&gt;
      &lt;description&gt;
          De &lt;name&gt; app voor je telefoon
      &lt;/description&gt;
      &lt;author email="stephan@&lt;name&gt;.nl" href="https://&lt;name&gt;.nl"&gt;
          Het &lt;name&gt; Team
      &lt;/author&gt;
      &lt;content src="index.html" /&gt;
      &lt;access origin="*" /&gt;
      &lt;preference name="SplashScreen" value="screen" /&gt;
      &lt;preference name="SplashScreenDelay" value="2000" /&gt;
  &lt;/widget&gt;
  </code></pre>