I have a webview that works fine on iOS, but not Android. Is there a tool where I can connect to Android webview in browser and debug it using firefox or webkit console? Cu
Those are the steps i use to debug a WebView
content in a device:
Add this line in your custom Application
class or in the Activity
where the webview is loaded
//if your build is in debug mode, enable webviews inspection
WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG);
Open Chrome and go to chrome://inspect
and you should see your device in the Remote Target list
WebView
will be added to the layout, in the tab you opened will appear a screenshot with a Inspect button, click there and a Chrome developer console will open