Autostart

Contents

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

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

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-autostart npm install @ionic-native/autostart
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/autostart

Supported Platforms

  • Android

Usage

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


constructor(private autostart: Autostart) { }

...

this.autostart.enable();

this.autostart.disable();