How to Debug Webview in Android App on Chrome OS
Reported by
lawrence...@gmail.com,
Oct 24 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36 Platform: 55.0.2883.17 Steps to reproduce the problem: Have an android app that uses webview. Run it on Chrome OS. Try to debug it. What is the expected behavior? I'm looking for a way to use chrome dev tools or something similar to inspect the actual internals of the webview. (There's a keyboard hiding event that's not triggering or being suppressed or not firing in some way.) What went wrong? I've tried to use the chrome://inspect page to detect the android app, enable remote debugging and similar things. Not sure where to go from here to actually get a console for the webview itself. Did this work before? N/A Chrome version: 54.0.2840.59 Channel: n/a OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 23.0 r0
,
Oct 25 2016
Here is the documentation explaining how to debug webview: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
,
Oct 25 2016
I've tried the steps in that documentation and it did not work, the applications never came up in the chrome://inspect page
,
Oct 25 2016
This question is for ARC apps that have a webview, not a chrome app.
,
Oct 25 2016
TO debug ARC apps in ChromeOS, you need to be in DEV mode and setup ADB. Please follow instructions here - https://developer.android.com/topic/arc/index.html#setup
,
Oct 25 2016
Thanks, but how do you get access to the webview?
,
Oct 25 2016
For example. Here's how you debug with Android: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/
,
Nov 3 2016
I figured it out... You first need to follow the instructions at https://developer.android.com/topic/arc/index.html#setup then after 'adb connect' command, from chrome you go to chrome://inspect/#devices and you should see the webview for the ARC app.
,
Nov 7 2016
I see the device (Asus Chromebook Flip C100P) but nothing about the webview/ARC app. |
||
►
Sign in to add a comment |
||
Comment 1 by sduraisamy@chromium.org
, Oct 25 2016