J Jim Wang New Member Licensed User Longtime User Feb 16, 2017 #1 Hi, Is it possible to use self-signed SSL on the server side, and can still be viewed in WebView in B4A apps. like https://192.168.0.100:443 (which runs my server app using self-signed SSL certificates) When using the browser, the phone ask for confirmation for security. But when placed inside WebView, it shows nothing blank. Thanks, Jim P.S. I also bought B4i months ago, haven't try it yet, would have the same issue.
Hi, Is it possible to use self-signed SSL on the server side, and can still be viewed in WebView in B4A apps. like https://192.168.0.100:443 (which runs my server app using self-signed SSL certificates) When using the browser, the phone ask for confirmation for security. But when placed inside WebView, it shows nothing blank. Thanks, Jim P.S. I also bought B4i months ago, haven't try it yet, would have the same issue.
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2017 #2 If you don't plan to publish your app to Google Play then you can use a version of WebView that ignores ssl errors. Search for: WebView onReceivedSslError Second option is to modify OkHttpUtils2 and change hc.Initialize to hc.InitializeAcceptAll (HttpUtils2Service). This will allow you to download the html and then you can show it with WebView.LoadHtml. Upvote 0
If you don't plan to publish your app to Google Play then you can use a version of WebView that ignores ssl errors. Search for: WebView onReceivedSslError Second option is to modify OkHttpUtils2 and change hc.Initialize to hc.InitializeAcceptAll (HttpUtils2Service). This will allow you to download the html and then you can show it with WebView.LoadHtml.
J Jim Wang New Member Licensed User Longtime User Feb 17, 2017 #3 Very helpful. Will dig more. Thank you Erel ! Upvote 0