title: Troubleshoot Android 4.3 webview within an app that requires up-to-date Google Play services
body: <p>I need to troubleshoot an issue happening in a webview running within my app. This issue only occurs on Android versions lower or equal to 4.3. My app requires an up to date version of Google Play services.</p>
  
  <p>In order to troubleshoot my webview, I usually can run my app under the Android Emulator (with the latest version of Android), then connect to the web view via Chrome (using chrome://inspect) - the web view appears in Chrome and I'm able to browse the DOM and debug.</p>
  
  <p>To run the app under 4.3, I've created (under AVD) a new device from an existing device definition,
  then picked the target <em>Google APIs (Google Inc.) - API Level 18</em>. I've then installed my app, but when trying to run it, I get the error message "This app won't run unless you update Google Play services.". There's an "Update" button on the previous dialog, but nothing happen when clicking on it.</p>
  
  <p>I then tried to debug my issue using Genymotion. I've created a device under 4.3, followed <a href="https://gist.github.com/wbroek/9321145" rel="nofollow">these instructions</a> to flash my device with the latest Google Play services and installed my app. I can now run the app and reproduce the issue within this simulated environment.</p>
  
  <p>The trick now is to be able to connect to the web view from my local Chrome browser. I've enabled remote debugging as described <a href="https://developer.chrome.com/devtools/docs/remote-debugging#setting-up-device" rel="nofollow">here</a>. Now my device appears in Chrome, but the web view is not showing up in the inspector. Similarly, if I open a new tab under the native browser, it won't show up in the remote inspector. If I open a new tab under Android Chrome though, I can see it showing up under my remote Chrome inspector.</p>
  
  <p>I can see two way moving forward and successfully accessing to the DOM of my webview:</p>
  
  <ul>
  <li>Fixing the "Update" issue under the Android Emulator running 4.3</li>
  </ul>
  
  <p>Or</p>
  
  <ul>
  <li>Connecting to my web view from my Chrome inspector while running the app under Genymotion</li>
  </ul>
  
  <p>Any idea on how to solve one of these two problems?</p>