title: Plugin not triggered in cordova/phonegap application
body: <p>The plugin de.appplant.cordova.plugin.background-mode (which can be found on github at: <a href="https://github.com/katzer/cordova-plugin-background-mode" rel="nofollow">https://github.com/katzer/cordova-plugin-background-mode</a>) is not activating correctly inside of my application. Here is the code I am running in my index.js: </p>
  
  <pre><code>            document.addEventListener('deviceready', function () {
              // Android customization
              cordova.plugins.backgroundMode.setDefaults({ text:'Doing heavy tasks.'});
              // Enable background mode
              cordova.plugins.backgroundMode.enable();
  
              // Called when background mode has been activated
              cordova.plugins.backgroundMode.onactivate = function () {
                  setTimeout(function () {
                      alert('activated')
                      // Modify the currently displayed notification
                      cordova.plugins.backgroundMode.configure({
                          text:'Running in background for more than 5s now.'
                      });
                  }, 5000);
              }
          }, false);
          cordova.plugins.backgroundMode.enable();
  </code></pre>
  
  <p>However, when I run it, the alert('activated') does not trigger. How can I fix this? I have my code up on github @ <a href="https://github.com/acquainting/Cordova-Test" rel="nofollow">https://github.com/acquainting/Cordova-Test</a>.
  Thanks!</p>