title: Xamarin.Auth, WebView Clear Cookies on Android
body: <p>I've tried probably everything I could find online regarding clearing the cookies for an Android WebView using Xamarin.Auth. The Auth library does not expose the Android WebView; I cannot use its WebSettings nor clear the cache on that WebView object.</p>
  
  <p>Xamarin.Auth exposes a method for clearing cookies:</p>
  
  <pre><code> public static void ClearCookies()
   {
          global::Android.Webkit.CookieSyncManager.CreateInstance(global::Android.App.Application.Context);
          global::Android.Webkit.CookieManager.Instance.RemoveAllCookie();
   }
  </code></pre>
  
  <p>which does not seem to have an effect on cookies. I can see the cookies while debugging through Chrome and clearing it there does remove all cookies. </p>
  
  <p>I have tried <code>CookieManager.Instance.RemoveAllCookies(null);</code> and <code>CookieManager.Instance.RemoveSessionCookies(null);</code>, creating a new WebView before Xamarin.Auth creates its own instance, setting SetAcceptCookies to false, clearing WebViewStorage, and deleting "webview.db" and "webviewCache.db." but all cookies still remain.</p>
  
  <p>I've looked an absurd amount of suggestions and answers. </p>
  
  <p>Using Xamarin.Auth v1.5.0.3 and testing on S4 Mini, S7, LG G3 Beat.</p>
  
  <p><b>*Edit</b><br>
  Since CookieManager.Instance.Sync() runs asyncronously, could it be that this isn't completing in time or simply doesn't run?</p>