/cordova-plugin-appminimize

This is a cordova plugin to minimizes the application in android devices

Primary LanguageJavaMIT LicenseMIT

cordova-plugin-appminimize License

AppMinimize is a cordova plugin to minimize the application in android devices

Supported Platforms

  • Android

Installation

Cordova:

cordova plugin add https://github.com/tomloprod/cordova-plugin-appminimize.git

Usage

This plugin exports an object with one method called "minimize":

window.plugins.appMinimize.minimize();

##Ionic Example

In this example the application is minimized by pressing the back button

$ionicPlatform.registerBackButtonAction(function (event) {
    event.preventDefault();
    window.plugins.appMinimize.minimize();
}, 100);

##Ionic 2 Example

In this example the application is minimized by pressing the back button

this.platform.registerBackButtonAction(() => {
    window['plugins'].appMinimize.minimize();
});