Page 1 of 1

How to set up an android webview for debugging

Posted: Wed Nov 19, 2014 3:18 pm
by John5269257

Hi
I have issues that only appear when running as an app, and I'd like to enable my webview for debugging.

I'm reading this:
https://developer.chrome.com/devtools...

which tells me:
"you need to enable it programmatically from within your application by calling setWebContentsDebuggingEnabled, a static method on the WebView class."

Sample code is provided:

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

but I've now idea where or how to include it in my Appery project source.

I have remote debugging working for Chrome on Android, so the desktop side is done, I just need to enable the webview for debugging.

I'm still on the old Appery UI, running android 4.4.4 on a nexus 7

Appreciate any help
John


How to set up an android webview for debugging

Posted: Wed Nov 19, 2014 4:27 pm
by Maryna Brodina

Hello!

You would need to add the following plugin https://build.phonegap.com/plugins/477


How to set up an android webview for debugging

Posted: Tue Jul 21, 2015 5:24 pm
by Miguel Navarro7469744

I need to do this what are the exact steps to load this plugin with appery.io?


How to set up an android webview for debugging

Posted: Tue Jul 21, 2015 6:36 pm
by Evgene Karachevtsev

Hello Miguel,

Unfortunately we don't have ready solution for this and the plugins are outside the scope of our support, but I hope this link will help you:
https://devcenter.appery.io/documenta...


How to set up an android webview for debugging

Posted: Tue Jul 21, 2015 7:15 pm
by Miguel Navarro7469744

Would I be better off trying to get weinre debugging working or using the plugin to test android in chrome. I have an issue where the app seems to crash/timeout in android 5.0.2. It seems like there's some new functionality in it too that's appearing in my app like a transparent circle with three dots in it.


How to set up an android webview for debugging

Posted: Fri Jul 24, 2015 1:33 am
by Yurii Orishchuk

Hi Miguel,

Weinre debugger should work on android and ios.

And you don't need to install any plugin for this functionality.

Please learn more about how to use WEINRE in Appery.io app here:
https://devcenter.appery.io/documenta...

Regards.