title: Android 10 keeps killing app in background
body: <p>i created an app to automatically save contacts for my friend on his whatsapp using cordova. The app has to work in background so i also added <a href="https://github.com/katzer/cordova-plugin-background-mode" rel="nofollow noreferrer">cordova-plugin-background-mode</a>. on my android 5.0, it works fine. but while testing on android 10 which is what my friend uses. the OS kills the app after few minutes(sometimes seconds) of being in background.</p>
  
  <p>This is my <code>AndroidManifest.xml</code></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" /&gt;
      &lt;uses-permission android:name="android.permission.FOREGROUND_SERVICE" /&gt;
              &lt;uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE" /&gt;
      &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  </code></pre>
  
  <p>i also did this in my code</p>
  
  <pre><code>cordova.plugins.backgroundMode.disableWebViewOptimizations();
  cordova.plugins.backgroundMode.disableBatteryOptimizations();
  cordova.plugins.backgroundMode.openBatteryOptimizationsSettings();
  </code></pre>
  
  <p>My guess is, there is another permission i need to work in background on Android 10.</p>