Ionic App Minimize


Ionic App Minimize Plugin App Minimize plugin provides functionality for minimizing the app on Android devices. To use this plugin you need to add the cordova cordova-plugin-appminimize. Here in this tutorial we are going to explain how you can install this plugin and use it.


Ionic App Minimize Plugin Install Example

First you need to install cordova plugin cordova-plugin-appminimize. You can install by adding the following command-

Ionic App Minimize Plugin Install Example :

$ ionic plugin add --save https://github.com/tomloprod/cordova-plugin-appminimize.git
$ npm install --save @ionic-native/app-minimize
  • Supported Platform– Android

Example

| Example:

import { AppMinimize } from '@ionic-native/app-minimize';


constructor(private appMinimize: AppMinimize) { }

...

this.plugin.minimize().then(
  success => console.log('Closed'),
  err => console.log('Something went wrong')
);

Instance Members

  • minimize()– This minimizes the application.

Returns

It Returns the promize.


Advertisements

Add Comment

📖 Read More