cordova-is-background

Utility function for finding out if the application is in the background or not

Usage no npm install needed!

<script type="module">
  import cordovaIsBackground from 'https://cdn.skypack.dev/cordova-is-background';
</script>

README

cordova-is-background

Travis npm package Dependency Status devDependency Status

Utility function for finding out if the application is in the background or not

Install

$ npm install --save cordova-is-background

Usage

import isBackground from 'cordova-is-background';

if (isBackground()) {
  notify('you have a new message!');
}

License

See the LICENSE file for license rights and limitations (MIT).