This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 349
SSL Errors causes WebView to show blank page - Android #34
Milestone
Comments
I've tweaked the solution, it now presents the user with an error message and prompts them to continue or cancel. (Tested working on an HTC Desire running CyanogenMod 7.2.0.1 - Android 2.3.7)
|
Does the sample produce the same error? I haven't been able to reproduce the issue on a GB simulator. |
And for iOS? I need a solution |
This issue was very specific to Android, relating to trusted SSL root certificates back in 2013. Any iOS issue is definitely unrelated to this. You should log a separate issue or look around for a solution to your problem on StackOverflow. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Gingerbread does not see Facebook's security certificate as valid, and any SSL error in a webview causes it to stop loading the page. Unfortunately, GB still runs on a large amount of devices out there. The solution to this problem is the following: Override the OnReceivedSSLError method of the WebViewClient as such
I've tested this and it allows the Facebook login page to display correctly on GB devices. I know it's not very secure, I'm working on a more fine tuned version which I'll post if I get it working.
The text was updated successfully, but these errors were encountered: