Skip to main content
Version: v5

Background Mode

Cordova plugin to prevent the app from going to sleep while in background. Requires Cordova plugin: cordova-plugin-background-mode. For more info about plugin, visit:

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.


$ npm install cordova-plugin-background-mode 
$ npm install @awesome-cordova-plugins/background-mode
$ ionic cap sync

Supported Platforms

  • AmazonFire OS
  • Android
  • Browser
  • iOS
  • Windows



Learn more about using Ionic Native components in React


import { BackgroundMode } from '@awesome-cordova-plugins/background-mode/ngx';

constructor(private backgroundMode: BackgroundMode) { }