title: Run cordova/phonegap javascript in background
body: <p>We are trying to push a local notication from the background of a cordova app.</p>
  
  <p>We are using the local-notification plugin and have set a timer on a 10 second mark to display the notification.</p>
  
  <p>Now when we try to run our app on android and ios, the app doesn't run in the background. So we start the app, and keep in in the foreground: it receives the notification.</p>
  
  <p>When we press the home (ios) or back (android) it seems like the timers are paused. When we re-open the app it resumes the countdown and displays the notification.</p>
  
  <p>So we were searching and found the following setting:</p>
  
  <pre><code>&lt;preference name="keepRunning" value="true" /&gt;
  </code></pre>
  
  <p>So we set it in the config.xml but nothing seems to change.</p>
  
  <p>Is there anybody who nows how to run javascript from the background?</p>
  
  <p>Thanks in advance</p>