webview-debug icon indicating copy to clipboard operation
webview-debug copied to clipboard

I can see the device, but not any applications bellow it

Open koyan opened this issue 11 years ago • 29 comments

So there is nothing to click "inspect" on to. I have installed the plugin (using phonegap though, but it should be the same), and I can install the app to my device with adb install, and I can see the device in the devices of chrome://inspect , but there are no applications bellow it

(I can see applications just fine when I run the emulator).

Any ideas?

koyan avatar Jan 23 '14 13:01 koyan

Do you have USB debugging turned on in the developer settings?

Of that's not the problem, I honestly don't know. I experienced something similar with a Galaxy S4 yesterday. Adb drivers installed and everything, but still nothing. On Jan 23, 2014 5:02 AM, "Konstantinos Kokkorogiannis" < [email protected]> wrote:

So there is nothing to click "inspect" on to. I have installed the plugin (using phonegap though, but it should be the same), and I can install the app to my device with adb install, and I can see the device in the devices of chrome://inspect , but there are no applications bellow it

(I can see applications just fine when I run the emulator).

Any ideas?

— Reply to this email directly or view it on GitHubhttps://github.com/jrstarke/webview-debug/issues/4 .

jrstarke avatar Jan 23 '14 14:01 jrstarke

I have USB debugging turned on. I am waiting for a friend to bring me a different android device, to test it with that one. Next step (tommorow) will be that I will try to find how/if I can add the code manually to the webview, to see if how it behaves from there. I will update here when I know more.

Thanks

koyan avatar Jan 23 '14 14:01 koyan

Are you able to debug webpages in the Chrome browser with it? On Jan 23, 2014 6:31 AM, "Konstantinos Kokkorogiannis" < [email protected]> wrote:

I have USB debugging turned on. I am waiting for a friend to bring me a different android device, to test it with that one. Next step (tommorow) will be that I will try to find how/if I can add the code manually to the webview, to see if how it behaves from there. I will update here when I know more.

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/jrstarke/webview-debug/issues/4#issuecomment-33128023 .

jrstarke avatar Jan 23 '14 14:01 jrstarke

I had not checked before. I downloaded chrome on it and checked it now, and it I can debug fine from the web browser when I open web pages in chrome.

One other thing came to mind (forgive me if it is this and I wasted your time):

I have not installed cordova, I have installed phonegap. I installed your plugin with: phonegap local plugin add https://github.com/jrstarke/webview-debug.git (like I have installed all other plugins , no matter if the instructions were for phonegap or cordova).

According to the phonegap documentation it should not make any difference, since it is not a different product (yet).

koyan avatar Jan 23 '14 14:01 koyan

I thought of one other thing. In the developer settings, there is a debug app selection. I've never used it myself, but it's worth a try? On Jan 23, 2014 6:42 AM, "Konstantinos Kokkorogiannis" < [email protected]> wrote:

I had not checked before. I downloaded chrome on it and checked it now, and it I can debug fine from the web browser when I open web pages in chrome.

One other thing came to mind (forgive me if it is this and I wasted your time):

I have not installed cordova, I have installed phonegap. I installed your plugin with: phonegap local plugin add https://github.com/jrstarke/webview-debug.git (like I have installed all other plugins , no matter if the instructions were for phonegap or cordova).

According to the phonegap documentation it should not make any difference, since it is not a different product (yet).

— Reply to this email directly or view it on GitHubhttps://github.com/jrstarke/webview-debug/issues/4#issuecomment-33129042 .

jrstarke avatar Jan 23 '14 14:01 jrstarke

I only have 3 settings there on the phone I am testing: a) Stay in normal condition (screen does not go to screen saver) b) Debug via USB c) Allow false locations

koyan avatar Jan 23 '14 15:01 koyan

So, came back to this. I got hold of two more devices (a noname tablet and an htc vision). In all of them the same. I could debug chrome, but no app made from phonegap. I will try to compile and install from a windows pc where I have the environment ready.

koyan avatar Feb 03 '14 15:02 koyan

What version of Android are you running on the devices? This only works on 4.4 or higher for webview debugging.

jrstarke avatar Feb 04 '14 15:02 jrstarke

Dont't know if this helps but, I was able to debug my phonegap application in chrome on an Nexus 5 with Android 4.4, without this plugin. On another device (Samsung Galaxy W 4.4 custom rom) I can't debug the app within chrome, only webpages...I wonder what your phonegap plugin does because it should work without in 4.4 ?

pille72 avatar Feb 05 '14 08:02 pille72

Thanks Philip,

Great catch. This plugin is really simple. All it does is sets the remote debug flag on the webview. I looked into this yesterday for someone else, and it turns out that the Cordova team added the same thing in 3.3.0, so absolutely, not needed for >= 3.3.

jrstarke avatar Feb 05 '14 14:02 jrstarke

Hello!!!!

I have the same problem here, but this are my results:

I am working on a Sony Xperia E, with Androind 4.1, now this is the thing, I am able to debug anything from the CHROME application in my phone to the CHROME in my computer, but I can't see the application I am developing, I added your plugin from phonegap build, I am compiling with Cordova 3.4.0 and still nothing, do you have any idea of why this might be happening? any help would be highly appreciated!

micheltobon avatar Apr 19 '14 01:04 micheltobon

Anyone figured this out?

Can I debug release builds also using the chrome://inspect method?

I can see the device when I open the chrome://inspect window but I cannot see the app

ghost avatar Jul 13 '15 07:07 ghost

Having the same problem, too.

ghost avatar Jul 15 '15 21:07 ghost

Hello everyone I am using a local installation of WEINRE, that's how I can debug my code, I was never able to run this application

micheltobon avatar Jul 16 '15 00:07 micheltobon

found this issue trying to figure out why I could debug before and couldn't debug later via chrome. Problem was my build with a key (which is required for play store) didn't work, when I built with no key, could debug again

MikeyBeLike avatar Apr 25 '16 23:04 MikeyBeLike

Hello everyone, I am able to debug a lot faswer with gapdebug, it's way better with this free aplication:

https://www.genuitec.com/products/gapdebug/

Hope this helps, best regards

micheltobon avatar Apr 26 '16 00:04 micheltobon

Hi Lyricalz, can you please explain a little more this "Problem was my build with a key". Thank you!

theguiro avatar Jul 20 '16 21:07 theguiro

@theguiro Basically when I attempted to debug an android app with a build key (which is required to upload to play store), I couldn't debug. But it worked when I removed the build key from the app instead

MikeyBeLike avatar Jul 20 '16 21:07 MikeyBeLike

Oh ok, I get it. I found this post http://stackoverflow.com/questions/32175926/debugging-an-ionic-app-for-android-platform which I think has an answer. I will test it out. Thanks!

theguiro avatar Jul 20 '16 22:07 theguiro

Solved testing with >5.1

germandosko avatar Sep 14 '16 22:09 germandosko

I have issue in my ionic project , in some smarts phone i capture the images but images will not show on smartphone but will show on debugging screen ...

SOftEngrAtta avatar Dec 22 '16 10:12 SOftEngrAtta

I had the same issue and solved it by calling WebView.setWebContentsDebuggingEnabled(true) as explained at https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews. However, I did have to set my minSdkVersion to 19 in my module's build.gradle file in the defaultConfig under android.

mosofsky avatar Feb 09 '17 21:02 mosofsky

my ionic project complitly run on browser but not proper run on my android mobile how to solve this problem pls help me

dixitchauhan avatar Mar 07 '17 07:03 dixitchauhan

you can properly set you environment variable paths and also open developer option in mobile ?

On Tue, Mar 7, 2017 at 12:01 PM, dixitchauhan [email protected] wrote:

my ionic project complitly run on browser but not proper run on my android mobile how to solve this problem

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jrstarke/webview-debug/issues/4#issuecomment-284639119, or mute the thread https://github.com/notifications/unsubscribe-auth/AXkePWZOts2mq9GpYAXfie6IfT-6Jfpvks5rjQDUgaJpZM4Bb9q- .

-- ATTA UR REHMAN [email protected] Software Developer

SOftEngrAtta avatar Mar 07 '17 07:03 SOftEngrAtta

I solved the problem because I was lunching the app from the device itselft and not from the computer.

Lunch the app from the computer

cordova run android

and then you'll see the app on chrome dev tools in the URL

chrome://inspect/#devices

image

jfoclpf avatar Jul 08 '17 20:07 jfoclpf

Don't allow me to inspect Y?

screen shot 2017-10-27 at 11 43 59 pm

hengsoheak avatar Oct 27 '17 16:10 hengsoheak

I am also facing the same issue. Sometimes, I am able to debug ionic app using Devtools sometimes not. I can see the app listing on chrome://inpects/#devices page. but unable to debug. however, I tried the same thing on another mobile. it works on it. I didn't find the exact issue. I still looking for the best solution.

atifhussain-coder avatar Apr 03 '18 07:04 atifhussain-coder

found this issue trying to figure out why I could debug before and couldn't debug later via chrome. Problem was my build with a key (which is required for play store) didn't work, when I built with no key, could debug again

Building with "No key selected" also fixed it for me.

distinctdan avatar Sep 15 '18 03:09 distinctdan

how to fix this issue?

obito02 avatar Oct 14 '20 21:10 obito02