Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome remote devices not showing Cordova app

I'm trying to get a Cordova (= webview) app showing in the Chrome inspector remote devices, but it's not working.

It seems everything is OK with the developer options, since:

  • The phone is detected by the Chrome tool, but the tool says "No browsers detected" when my app is running on the phone ;
  • If I launch a browser on my phone, then the tool allows me to inspect it.

My coworker has the exact same phone (OnePlus One) and it works for him (he can inspect when the app is running). The difference is his phone is rooted.

We tried my phone on his PC and his phone on my PC: it didn't work with my phone but it worked with his.

We tried another phone, it didn't work on any PC.

I checked this: Chrome inspect devices not showing device but it doesn't change anything.

I checked this: Chrome Inspect Device not showing android app but since it's a webapp with Cordova, I'm not sure I'm suppose to do something like that, plus it works for my cowoker with the same app so it would be strange if I need to do this but not him.

like image 452
Destal Avatar asked Oct 17 '25 18:10

Destal


2 Answers

In order for Chrome to detect in app 'WebView' of your Cordova application, your Cordova application must be of 'debug' version obtained from Cordova build. If your Cordova application is of 'release' version, Chrome will not be able to detect the 'WebView'

like image 103
Yuvraj N Avatar answered Oct 20 '25 07:10

Yuvraj N


For Windows 10 User Just Install the new version of Microsoft Edge and Open edge://inspect/#devices.

like image 22
Onesine Nkemy A Lontio Avatar answered Oct 20 '25 07:10

Onesine Nkemy A Lontio



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!