Skip to content

Utility function for determining if a cordova app is in the background

License

Notifications You must be signed in to change notification settings

dotcore64/cordova-is-background

Repository files navigation

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).

About

Utility function for determining if a cordova app is in the background

Resources

License

Stars

Watchers

Forks

Packages

No packages published