Hi Stefan

The solution is simple ☺

webview.setXWalkClient(new XWalkClient(webview){

                public void onReceivedSslError(XWalkViewInternal view, 
ValueCallback<Boolean> callback, SslError error)
                {
                     callback.onReceiveValue(true);
                }
           });


Regards,
Shahar

Shahar Gluzman
Senior Mobile Software Developer
William Hill Online

T: +972 (73) 7333193
M: +972 (54) 3933193
E: [email protected]

[Description: Description: Description: Description: 
cid:[email protected]]

From: Crosswalk-help 
[mailto:[email protected]] On Behalf Of Stefan 
Persson
Sent: Monday, September 15, 2014 10:22 PM
To: [email protected]
Subject: [Crosswalk-help] onReceivedSslError

Hi

During development I have a need to ignore SSL certificate errors towards one 
of our test servers.

In Android 4.4 Chrome webview I can override onReceivedSslError but cannot 
figure out how to do it in XWalkView?

** example in Android Chrome WebViewClient

@Override public void onReceivedSslError(WebView view, SslErrorHandler handler, 
SslError error) { super.onReceivedSslError(view, handler, error); // this will 
ignore the Ssl error and will go forward handler.proceed(); }
***

Thanks
Stefan
Confidentiality: The contents of this e-mail and any attachments transmitted 
with it are intended to be confidential to the intended recipient; and may be 
privileged or otherwise protected from disclosure. If you are not an intended 
recipient of this e-mail, do not duplicate or redistribute it by any means. 
Please delete it and any attachments and notify the sender that you have 
received it in error. This e-mail is sent by a William Hill PLC group company. 
The William Hill group companies include, among others, William Hill PLC 
(registered number 4212563), William Hill Organization Limited (registered 
number 278208), William Hill US HoldCo Inc, WHG (International) Limited 
(registered number 99191) and WHG Trading Limited (registered number 101439). 
Each of William Hill PLC, William Hill Organization Limited is registered in 
England and Wales and has its registered office at Greenside House, 50 Station 
Road, Wood Green, London N22 7TP. William Hill U.S. HoldCo, Inc. is 160 
Greentree Drive, Suite 101, Dover 19904, Kent, Delaware, United States of 
America. Each of WHG (International) Limited and WHG Trading Limited is 
registered in Gibraltar and has its registered office at 6/1 Waterport Place, 
Gibraltar. Unless specifically indicated otherwise, the contents of this e-mail 
are subject to contract; and are not an official statement, and do not 
necessarily represent the views, of William Hill PLC, its subsidiaries or 
affiliated companies. Please note that neither William Hill PLC, nor its 
subsidiaries and affiliated companies can accept any responsibility for any 
viruses contained within this e-mail and it is your responsibility to scan any 
emails and their attachments. William Hill PLC, its subsidiaries and affiliated 
companies may monitor e-mail traffic data and also the content of e-mails for 
effective operation of the e-mail system, or for security, purposes..
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to