Android WebView setCertificate issues SSL problems

前端 未结 4 1333
情书的邮戳
情书的邮戳 2021-02-14 05:45

I have seen a lot of posts and information about SSL errors and I have stumbled upon one myself.

I am trying to access a web page through Android WebView with a GlobalSi

4条回答
  •  不思量自难忘°
    2021-02-14 06:31

    The method " setCertificate" is deprecated, so I think that it may not work.I solved a similar problem like yours.If you have your own ssl cacert, you can set networkSecurityConfig .networkSecurityConfig to learn more.

    android:networkSecurityConfig="@xml/network_security_config"
    
    
    
    
        
            
        
    
    
        
            
            
            
        
    
    
    

    if you load a url from assets ,you should also set the follow settings. webSetting.setAllowUniversalAccessFromFileURLs(true);

提交回复
热议问题