title: How to kill background process in android cordova
body: <p>Basically when i press back button, i'm using a confirm popup to exit from the application. If i press OK, my application has to close and background process should kill</p>
  
  <p>When ok,</p>
  
  <pre><code>navigator.app.exitApp()
  </code></pre>
  
  <p>This will close app, but background it will be running.</p>
  
  <p>I have added permission in <code>Manifest file</code> for killing the process</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" /&gt;
  </code></pre>
  
  <p>But not sure where and when it will call. I want to call this when <code>navigator.app.exitApp()</code> is happening. How to achieve this?</p>