Autostart
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
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-autostart $ npm install --save @ionic-native/autostart@4
- Add this plugin to your app's module
Supported platforms
- Android
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