Hi,
I have a Xamarin.Forms application. I integrated Airwatch SDK (WorkspaceOne.Forms) into the iOS part.
Now, I am trying to app tunneling with Airwatch SDK. For this reason I have added ModernHttpClient Handler to all of the HttpClients on my project. (Following the link: https://developer.vmware.com/web/workspace-one/tutorials/Xamarin-iOS/App-Tunneling/Airwatch-SDK)
When I do this, I can connect with tunnel on my app. Http post and get requests work in this way with no problem. But my app has webviews. Webviews don't open.
I saw that app tunneling is supported with UIWebView (not supported with WKWebView). I know UIWebView is deprecated I can't publish it to the AppStore. But I wonder if I use UIWebView, does it work? For this reason I tried to custom renderer for UIWebView like following code.
<custom:CustomWebView Source="{Binding WebViewSource}" />
public class CustomWebView : WebView
{
}
[assembly: ExportRenderer(typeof(CustomWebView), typeof(CustomWebViewRenderer))]
namespace App.iOS.CustomRenderer
{
public class CustomWebViewRenderer : ViewRenderer<WebView, UIWebView>
{
protected override void Dispose(bool disposing)
{
GC.Collect();
}
}
}
But I couldn't be sure of this technique is true. Because UIWebView deprecated and it is not supported with new Xamarin.Forms versions. I inherited CustomWebView from WebView. If Xamarin.Forms is not supported UIWebView in the new versions, when I code like this custom renderer, can I use UIWebView?
If I make a custom renderer like this, do I use UIWebView or do I use WKWebView? I'm confused. How can I try UIWebView?
Thanks in advanced.