Building apps at a large company? Check out Ionic Enterprise

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