cordova-plugin-autostart icon indicating copy to clipboard operation
cordova-plugin-autostart copied to clipboard

Plugin not working on Ionic 4

Open barbaldo opened this issue 5 years ago • 1 comments

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

barbaldo avatar Feb 18 '20 13:02 barbaldo

I am having the same issue... any solution for this?

hammadjamil avatar Jun 29 '22 05:06 hammadjamil