Example #1
0
 /// <summary>
 /// Add a host to white list of certification trusted sites.
 /// </summary>
 /// <description>
 /// This method only works in Android. You could add a host name like "abc.com" to this white list to bypass when an SSL error is encountered.!--
 /// If you are using a self-signed certification which is not trusted by the system, you need to add your host name to the list before you could
 /// correctly visit the site.
 /// </description>
 /// <param name="host">Host name which will be added to list. The error bypassing is per host based. Do not contain the scheme or path of your target url.</param>
 public void AddCertTrustedHost(string host)
 {
     #if UNITY_ANDROID && !UNITY_EDITOR
     UniWebViewPlugin.AddCertTrustedHost(gameObject.name, host);
     #endif
 }