Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableHttpsSelfSigned.enable prevents Capacitor plugins from working #5823

Closed
jcesarmobile opened this issue Dec 7, 2019 · 3 comments
Closed

Comments

@jcesarmobile
Copy link
Contributor

If EnableHttpsSelfSigned.enable(findViewById(R.id.webview)); is present in MainActivity.java, it will prevent Capacitor native plugins from working, since EnableHttpsSelfSigned class overrides the WebViewClient that Capacitor uses to inject the javascript that makes plugins work.

@nklayman
Copy link
Contributor

nklayman commented Dec 8, 2019

I'm not sure how to get around this one, as I don't know any other way of ignoring ssl errors. We might have to make a pr to capacitor that adds the option to ignore ssl errors.

@nklayman
Copy link
Contributor

PR here: ionic-team/capacitor#2271.

rstoenescu added a commit that referenced this issue Jun 4, 2020
* feat(app/capacitor): upgrade to capacitor 2.0

* fix(app/capacitor): fix https ssl enable

* fix(app/capacitor): https with non-default app ID

Co-authored-by: Razvan Stoenescu <[email protected]>
@rstoenescu
Copy link
Member

The suggested changes will be shipped with "@quasar/app" v2. A big "thank you!" from Quasar team for guiding us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants