App Minimize
AppMinimize is a plugin to minimize the application on android devices
Repo: https://github.com/tomloprod/cordova-plugin-appminimize
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-appminimize $ npm install --save @ionic-native/app-minimize@4
- Add this plugin to your app's module
Supported platforms
- Android
Usage
import { Platfrom } from 'ionic-angular';
import { AppMinimize } from '@ionic-native/app-minimize';
constructor(private platform: Platform, private appMinimize: AppMinimize) { }
...
this.platform.registerBackButtonAction(() => {
this.appMinimize.minimize();
});
Instance Members
minimize()
Minimizes the application
Returns: Promise<any>