title: Android Webview: xhr-polling keeps page 'loading'
body: <p>I have a WebView running a page containing a socket.io client that connects to a remote node.js server. The problem is that because websockets are not supported in the Android webview (they are in the Android Chrome browser), it falls back to xhr-polling.</p>
  
  <p>I have an <code>onProgressChanged</code> listener for the <code>WebChromeClient</code>, but the xhr-polling keeps the page continuously loading. When I log the progress, it reaches ~90-95% and gets no further. This means that I cannot dismiss any loading indicators or perform any other actions that require the page to be fully loaded.</p>
  
  <p>Is there anyway I can make Android think that the <code>xhr-polling</code> is not part of the page loading? Or is there a workaround? I haven't tested it with <code>jsonp-polling</code> yet. I would prefer a solution to this issue, rather than a hack/workaround, but ultimately I just want my app to work.</p>
  
  <p><em>P.S, I am aware of native libraries for socket.io and WebSockets on android. However, this all needs to be done in a WebView.</em></p>
  
  <p>Thanks</p>