Search code examples
androidgoogle-chromeprogressive-web-appsdevtoolsinspector

Google Chrome Inspector on Remote Devices not working


I'm working on an Android App that uses WebView and wanted to use the inspector in order to check some things.
The problem is the elements are not visible or other tabs seem not be working, they are blank.

Does somebody else experience this issue? or is there a workaround rather than downgrading the chrome version on your system?

Since Google Chrome updated to version 80 the panel for Remote Devices has been deprecated and it's required to go on: chrome://inspect/devices#devices
(Note: Inspector on Remote Devices was working fine on Chrome 78-79)

enter image description here


Solution

  • For Chrome 80 to work on the emulator is required to have an API > 26
    This is required because the WebView version will be updated based on the emulator API and Chrome 80 removed support for HTML imports and (very) old versions of DevTools do not have the polyfill built in to prevent crashing. (link for open chromium bug)

    API 26 has 58.0.3029 WebView version - works for older versions of Chrome < 80
    API 28 has 69.0.3497.100 WebView version - works on Chrome 80