Building apps at a large company? Check out Ionic Enterprise

Autostart

Improve this doc

This plugin will start automatically your Android app after the every boot or the auto-update of your application. 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