Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

App Minimize

Improve this doc

AppMinimize is a plugin to minimize the application on android devices

Repo: https://github.com/tomloprod/cordova-plugin-appminimize

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-appminimize
    $ npm install --save @ionic-native/app-minimize@4
    
  2. Add this plugin to your app's module

Supported platforms

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>

API

Native

General