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

Autostart

Improve this doc

This plugin automatically starts your Android app after every boot or auto-update. You can enable or disable the autostart function in your app.

Repo: https://github.com/ToniKorin/cordova-plugin-autostart

Installation

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

Supported platforms

Usage

import { Autostart } from '@ionic-native/autostart';


constructor(private autostart: Autostart) { }

...

this.autostart.enable();

this.autostart.disable();

Instance Members

enable()

Enable the automatic startup after the boot

disable()

Disable the automatic startup after the boot

API

Native

General