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

Webpage not loading - Android #1530

Closed
arundev-kv opened this issue Jul 22, 2020 · 21 comments
Closed

Webpage not loading - Android #1530

arundev-kv opened this issue Jul 22, 2020 · 21 comments
Labels

Comments

@arundev-kv
Copy link

Getting the error

{ canGoBack: false, canGoForward: false, code: 3, description: "SSL error: The certificate authority is not trusted", loading: false, target: 4455, title: "", url: "https://myurl" }
in onError event.

    "react-native": "0.61.5",
    "react-native-webview": "^10.3.2",
@Unity-Group-BFGI
Copy link

same here,i when i include uri in my webview using native-webview, page was like blank, then i open it as web, and i inspect, there was no div or something which holds the webview content, it was like

empty..
solve this issue please

@Stefanama
Copy link

same thing happens here - tested locally and appears to be solved by #1466
@thephpjedi any idea when that fix could go out? 🙏

@alesandroortiz
Copy link
Contributor

alesandroortiz commented Jul 27, 2020

@Stefanama No idea, up to maintainers. I pinged again in #1466 to see if it can get merged.

Please note #1466 will only stop the SSL error handler from being called if an SSL error is encountered when loading certain subresources (e.g. iframe, etc.). Ideally you fix the SSL certificate error in the first place, if the resource is under your control.

With #1466, the resource will still be blocked, but the error handler will not be called for subresources. (It will be called for top-level errors.)

@Stefanama
Copy link

thanks a lot @thephpjedi! 😄
yep, that's fine, unfortunately that resource is not under our control but also don't need it on the app's webview (intercom in this case, which sounds weird, makes me think issue might be something else). Your fix works perfectly for what we need 💪

@alexpchin
Copy link

I'm having an issue with Android truncating the www from my urls? Is this due to: https://www.techrepublic.com/article/google-finally-chops-www-from-chromes-address-bar-despite-backlash-over-confusing-change/

Is react-native-webview chopping off www because the default browser is Chrome?

@alesandroortiz
Copy link
Contributor

@alexpchin This issue is unrelated to your question. Please open a new issue.

@alexpchin
Copy link

@thephpjedi Are you sure that your SSL is a wildcard and covers www. and no www? This is why you might be getting an error.

@alesandroortiz
Copy link
Contributor

@alexpchin: I think you meant to send the comment to someone else. I'm not OP.

@Unity-Group-BFGI
Copy link

I'm Stuck in between my project, and only 2 days are remaining for its deadline ends, first i made by websites on wordpress that is quite slow and i plug webview using andriod studio using java, it works but tooooo slowly :( and also when i rotate, it got app is stopped working, when i minimize or maximize, ok fine, then i use cordova and i plug iframe, quite good but x-frame CSP policy warnings, then i used kordular, they work same as other, all was good, but when i pressed on external link they just carried aways, like playstore, amazon app, zoom app, url to inside webview, i want them to open - a open with option, but nothing solved, at the end, i m good with react so i started react native, but wth these WEBSITE LOADING ERROR ???? :''(
help me jesusssss

@Stefanama
Copy link

Stefanama commented Jul 29, 2020

@Unity-Group-BFGI not sure about your internal practices but as you're on a tight deadline, first thing I'd suggest is to apply that fix I linked locally and see if that solves your problem otherwise you risk waiting on a fix that will be useless for your use case 😃

@Unity-Group-BFGI
Copy link

Unity-Group-BFGI commented Jul 29, 2020

25k is very much for me in india, i will not get 25k rupee :(, well i find onemore thing use full i m using flutter now, and i created , its works fast then android studio java, and i made backbutton, forward button, reload button and with there animations :D , so maybe my problem will solve by morning, and for external apps links, i m using a swatch button on my right and embading a direct link and open it as external broswer :P

Screenshot (110)

@sujayjaju
Copy link

sujayjaju commented Sep 1, 2020

Has anyone figured this error?
The URL opens ok in the browser - but in webview throws this error for:
https://fonts.googleapis.com/css?family....

{
"canGoBack": false,
"canGoForward": false,
"code": 3,
"description": "SSL error: The certificate authority is not trusted",
"loading": false,
"target": 5303,
"title": "My Title",
"url": "https://fonts.googleapis.com/css?family=Dosis:300,400,700",
}

@Stefanama
Copy link

@sujayjaju issue is solved by @alesandroortiz's PR (#1466) but it still needs one more approval before it can be merged

@willcaul
Copy link

@Titozzz @jamonholmgren - any chance @alesandroortiz's fix could be looked at? I'm getting SSL cert errors from a 3rd-party tracking pixel loaded on my page.

@github-actions
Copy link

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

@Dror-Bar
Copy link

Dror-Bar commented Jul 6, 2021

I'm still getting this ssl error, and I'm using latest version (11.6.4).

@vickypathak123
Copy link

Any Solution ?

@yunau
Copy link

yunau commented Jul 20, 2021

I have the same issue and I'm using the latest version (11.6.4) too.
The ios version is fine but the Andriod version is running with the SSL error.
No luck when adding "ignoreSslError={true}" on WebView, and got a blank page.

@SamiChab
Copy link

Can someone help ? Same error here with version 11.13.0

@susannakosic
Copy link

#1466

Hi, I m running on version 11.15.0 and stepping into this issue as well. Can anyone help?

@koaladlt
Copy link

Same issue here, on Pixel 4 emulator

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

No branches or pull requests