3

I am using an android device to debug my app through the google chrome browser.

It shows as my device is detected, but shows a message as 'No browser detected'.

I used ADB devices command as well. But still cannot see browser inspect option.

Here I have attached sample screenshot

3

2 Answers 2

1

To debug the webview you need to enable debugging as below

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
    WebView.setWebContentsDebuggingEnabled(true);
}

More information is available at https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews

Sign up to request clarification or add additional context in comments.

1 Comment

This is only true if you're debugging webView in an android app (APK), If you have a mobile browser specific bug showing up in a normal website, that doesn't show up in emulators, you don't need this at all. It's misleading because the question does not mention webViews.
0

At first make sure that

Discover USB devices checkbox is enabled in the Settings right below the listed devices option.

Try changing the connected mode from Charging/ Transfer Files/ MIDI etc. Because it varies on different manufacturers.

Then only it might show the prompt(RSA key fingerprint) to allow connection with the connected computer.

If that also didn't work, instead of opening the tab with chrome://inspect or chrome://devices

Follow these steps

  • Right click on any tab and click inspect
  • Go to sources tab
  • On the extreme right click the three dots menu
  • Click More Tools
  • Select Remote Devices

Check that page, it may help you.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.