title: I am trying to send a custom string along with the existing user agent in WKWebView, - Xamarin iOS
body: <p>I am trying to send a custom string along with the existing user agent in WKWebView, (Xamarin iOS) </p>
  
  <pre><code>    WKWebView WKWebView_New = new WKWebView(View.Frame, new WKWebViewConfiguration());
      var userAgent = WKWebView_New.EvaluateJavaScriptAsync("navigator.userAgent");
      WKWebView_New.CustomUserAgent =  userAgent + " + " + "MyApp";
  
      Console.WriteLine("User Agent = " + userAgent);
      Console.WriteLine("User Agent + Custom = " + WKWebView_New.CustomUserAgent);
  </code></pre>
  
  <p>I am seeing this as the user agent:</p>
  
  <p><code>User Agent = System.Threading.Tasks.Task1[Foundation.NSObject]</code></p>
  
  <p><code>User Agent + Custom = System.Threading.Tasks.Task1[Foundation.NSObject] + MyApp</code></p>
  
  <p>But Expected to see as below:</p>
  
  <blockquote>
    <p>User Agent = Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X)
    AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77</p>
    
    <p>User Agent + Custom = Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like
    Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15G77 +
    MyApp</p>
  </blockquote>
  
  <p>Any help regarding the same will be helpful.</p>
  
  <p>Thank you,</p>