Android Question Open Chrome Web Intent force load HTTP:// instead of HTTPS://

scsjc

Well-Known Member
Licensed User
Longtime User
Hello,

Can launch the chrome browser from intent, so that it accepts pages without the SSL certificate that is to open HTTP: //?

Until now I used this code, and it worked properly, to integrate videoconferencing, but since 04November2018 they have not renewed the SSL certificate, and can not load the web in HTTP mode: // and need force load HTTP://

Thank you so much


B4X:
#if java

import android.widget.*;
import android.webkit.*;
public void SetWebChrome(WebView wv) {
   wv.setWebChromeClient(new WebChromeClient() {
     @Override
     public void onPermissionRequest(PermissionRequest request) {
       BA.Log("onPermissionRequest");
       request.grant(request.getResources());
     }
   });
}
#End If

dim url_video as string = "https://appr.tc/r/"
dim CamView As WebView
CamView.Initialize("CamView")
panelcamview.AddView(CamView,0,0,100%x,100%y)

Dim jme As JavaObject
jme.InitializeContext
jme.RunMethod("SetWebChrome", Array(CamView))
CamView.LoadUrl(url_video)

Private Browser As Intent
Browser.Initialize(Browser.ACTION_VIEW, url_video)
Browser.SetComponent("com.android.chrome/com.google.android.apps.chrome.Main")
StartActivity(Browser)
 
Top