With the Xamarin Tag, it seems like you are using this with Xamarin.Forms, and therefore the answer below relates to Xamarin.Forms. However, the code is also valid for WebView in UWP.
You can try creating custom rendering for the WebView, and then try using the same WebView.NavigateWithHttpRequestMessage.
Before navigating, you can try setting the title as follows:
var requestMsg = new Windows.Web.Http.HttpRequestMessage(HttpMethod.Get, new Uri("https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending")); requestMsg.Headers.Add("User-Name", "AnubhavRanjan"); Control.NavigateWithHttpRequestMessage(requestMsg);
Uri above can be set based on your requirement.
If the request is executed several times, you can always set a delegate for the NavigationStarting event and process it in the method.
Control.NavigationStarting += OnWebViewNavigationStarting
source share