Capacitor 3: Run livereload with with ssl

I need to run the capacitor live reload with ssl, because the library auth0-spa needs to be executed on a secure origin. So I use this command to run livereload:

ionic cap run -l --external --ssl

To make this work, I need to add the code from user Badisi in this github issue to Otherwise, the self signed certificate is not accepted.

public void onCreate(Bundle savedInstanceState) {

    this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
        // Additional plugins you've installed go here
        // Ex: add(TotallyAwesomePlugin.class);

    if (BuildConfig.DEBUG) {
        this.bridge.getWebView().setWebViewClient(new BridgeWebViewClient(this.bridge) {
            public void onReceivedSslError(WebView view, final SslErrorHandler handler, SslError error) {

This works, but it skips Capacitor 3 plugin auto detection.

How can I modify this code to have working Capacitor 3 plugin auto detection?
Do you plan to implement support for --ssl flag in livereload mode? Would be great. In some cases, it is needed.

I have the same issue!

Any solution soon?..

Did you ever find a resolution to running the auth0-spa on a livereload server?

@jcesarmobile made a plugin just for that.

But make sure to uninstall it before going to production!

Great, thank you! Still an ugly solution, but much better than hacking files in the node_modules folder :slightly_smiling_face: - At least you see it in git changelog of package.json