dotcore64 / cordova-is-background

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%