title: Background mode is not working in ionic 5
body: <pre><code>Uncaught TypeError: Object(...) is not a function
      at index.js:249
      at Module../node_modules/@ionic-native/background-mode/index.js (index.js:405)
      at __webpack_require__ (bootstrap:84)
      at Module../src/app/app.component.ts (main.js:865)
      at __webpack_require__ (bootstrap:84)
      at Module../src/app/app.module.ts (app.component.ts:30)
      at __webpack_require__ (bootstrap:84)
      at Module../src/main.ts (environment.ts:19)
      at __webpack_require__ (bootstrap:84)
      at Object.0 (main.ts:13)
  </code></pre>
  <p>in package.json</p>
  <pre><code>&quot;@angular/core&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/forms&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/http&quot;: &quot;^7.2.16&quot;,
      &quot;@angular/material&quot;: &quot;^8.2.3&quot;,
      &quot;@angular/platform-browser&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/pwa&quot;: &quot;^0.803.23&quot;,
      &quot;@angular/router&quot;: &quot;^8.2.14&quot;,
      &quot;@angular/service-worker&quot;: &quot;^8.2.14&quot;,
      &quot;@capacitor/android&quot;: &quot;^1.5.1&quot;,
      &quot;@capacitor/core&quot;: &quot;1.5.1&quot;,
      &quot;@ionic-native/background-mode&quot;: &quot;^4.19.0&quot;,
      &quot;@ionic-native/camera&quot;: &quot;^5.24.0&quot;,
      &quot;@ionic-native/clipboard&quot;: &quot;^5.28.0&quot;,
      &quot;@ionic-native/core&quot;: &quot;5.0.0-beta.15&quot;,
      &quot;@ionic-native/deeplinks&quot;: &quot;^5.28.0&quot;,
      &quot;@ionic-native/file&quot;: &quot;^5.22.0-beta-1&quot;,
      &quot;@ionic-native/file-path&quot;: &quot;^5.22.0-beta-1&quot;,
      &quot;@ionic-native/file-transfer&quot;: &quot;^5.26.0&quot;,
  </code></pre>