react-native-webview: Webpage not loading - Android

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",

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 21 (3 by maintainers)

Most upvoted comments

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 😄 , 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 😛

Screenshot (110)

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",
}

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

@sujayjaju issue is solved by @alesandroortiz’s PR (https://github.com/react-native-webview/react-native-webview/pull/1466) but it still needs one more approval before it can be merged

@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 😃

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

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 💪