Ionic Framework 4 is almost here. Preview the beta docs and try it out now! Try Ionic 4 Beta

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