cordova-plugin-autostart
cordova-plugin-autostart copied to clipboard
Plugin not working on Ionic 4
Hi all
I can't get this plugin to work. Following the docs I import the plugin, declare autostart in the constructor, then call the enable() inside the component. No error is thrown in the console, the application just does not start after reboot.
I have noticed that if I open the remote inspector and put a breakpoint on the line where I call enable(), then autostart executes correctly.
Any help would be appreciated.
Ionic Info
Ionic:
Ionic CLI : 5.4.11 Ionic Framework : @ionic/angular 4.11.8 @angular-devkit/build-angular : 0.801.3 @angular-devkit/schematics : 8.1.3 @angular/cli : 8.1.3 @ionic/angular-toolkit : 2.1.2
Capacitor:
Capacitor CLI : 1.3.0 @capacitor/core : 1.3.0
Cordova:
Cordova CLI : 9.0.0 ([email protected]) Cordova Platforms : android 8.1.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 9 other plugins)
Utility:
cordova-res : 0.8.1 native-run : 0.3.0
System:
NodeJS : v10.16.0 npm : 6.13.1 OS : Windows 10
I am having the same issue... any solution for this?