Handle SSL certificate warning in a Xamarin.Forms.WebView control

MichaelKniskernMichaelKniskern USUniversity ✭✭

Is there a way a can handle the server certificate warning message when a user view a website through the Xamarin.Forms.WebView control?

I am testing my application against a development site were my iOS device cannot verify server identity because it is a SSL certificate issued through our developer CA server. I am able to click "Continue" on the model box and go to the site through Safari, but not the Xamarin.Forms.WebView control on my application.

Answers

  • CraigDunnCraigDunn USXamarin Team Xamurai

    Even doing this on the native platform looks tricky, but sadly the methods you need to override (and/or delegates you need to implement) aren't accessible to you in Xamarin.Forms.

    A custom renderer for your web view (maybe check out the XFLabs code) might help by giving you access to the methods you need.

Sign In or Register to comment.