Questions tagged [webchromeclient]

WebChromeClient is an Android class to intercept JavaScript dialogs, loading progress, and other events.

WebChromeClient is an Android class to intercept a Webkit Webview's JavaScript dialogs, loading progress, and other events.

Resources

137 questions
0
votes
1 answer

onConsoleMessage of WebChromeClient not capturing nested objects

I have a WebView with WebChromeClient set to capture Console logs this.setWebChromeClient(object : WebChromeClient() { override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean { Log.d("WebView…
Mohamed Wasiq
  • 490
  • 4
  • 17
0
votes
1 answer

Service chromedriver unexpectedly exited. Status code was: 6 in google colab

I am trying to run Selenium on Colab, but an error occurs. It ran well a few weeks ago, but an error occurred suddenly today at the last line of code. Please, what should I do? # install chromium, its driver, and selenium !apt-get update !apt…
0
votes
0 answers

Is crosswalk-project still available or is there an alternative

I don't like how my Android WebView app displays on some devices, so when I found out that crosswalk-project could fix that, I went to crosswalk-project.org but the website was down. Is there a way around it or an alternative to it? Or will using…
0
votes
0 answers

Open url in parent webview with out creating a new webview in android

I have an webpage which contain login button in it, On click of this login button it's opening new tab in Chrome. I tried to load this webpage in my Webview, like in below code. @Override public boolean onCreateWindow(WebView parentWebView,…
0
votes
0 answers

WebView shows "no_internet_layout" on error received even when there is an internet connection. Android Studio

I made a webview app but there is one error which is bothering me. The error is with the "webView.setWebViewClient(new WebViewClient()); and onErrorReceived" I created a no_internet_layout to show when there is no connection and added it to the…
0
votes
1 answer

Open Filechooser after Permission Granted in Android

I am using the following code to check if camera & storage permissions have been granted when user clicks on input-file field on my website in android webview: public boolean file_permission(){ if(Build.VERSION.SDK_INT >=23 &&…
dc09
  • 386
  • 2
  • 17
0
votes
1 answer

Using the Android Turbolinks Framework, how do I mitigate Bridge Injection Failures

I asked this question on the Turbolinks GitHub page last week as I kept experiencing this bridge injection failure issue. The issue is extremely intermittent and is very challenging to reproduce, but the code of the problem is that on some devices,…
PGMacDesign
  • 6,092
  • 8
  • 41
  • 78
0
votes
1 answer

flutter WebChromeClient equivalent, to use openFileChooser and onShowFileChooser

I'm trying to override the openFileChooser/onShowFileChooser/(equivalent on IOS as well), using flutter while inside a webview (i've used flutter_webview_plugin and webview_flutter). Is there a way to do this using only flutter? (if not, i'll have…
0
votes
1 answer

Why does webView.setWebChromeClient(new WebChromeClient()); cause the screen to go blank?

My app uses a WebView. When I have webView.setWebChromeClient(new WebChromeClient()); set, the screen appears blank on a Galaxy S9, but NOT on Galaxy Note 8 or Pixel 3a. Does anyone have any idea why this is happening?
CamHart
  • 3,825
  • 7
  • 33
  • 69
0
votes
1 answer

Issue while handling simultaneous window.open() from Android's webview

I have been handling window.open() requests from Javascript by implementing WebChromeClient myWebView.webChromeClient = MyChromeClient() And, MyChromeClient looks like: inner class MyChromeClient : WebChromeClient() { override fun…
0
votes
1 answer

Android Adform banner with Myanmar locale. "The value "၅၀" for key "height" is invalid, and has been ignored

My application has two languages: English and Myanmar. When I load AdForm banner with English configuration everything is fine. However, when I change appplication language to Myanmar banner is not showing, I get the following errors: I assume that…
Valeriya
  • 1,067
  • 2
  • 16
  • 31
0
votes
1 answer

webview full screen not show full screen video

Some one may mark as a duplicate issue.. Before mark it as duplicate please read my question fully. I have facing this problem last two days. I have tried all the answer that i got from the stackoverflow and even cloned some projects from github.…
Rezaul Karim
  • 830
  • 8
  • 15
0
votes
0 answers

What is the corresponding method of WebViewClient's "shouldInterceptRequest" in Chromium Browser Code?

I'm working on a WebView Based Browser. I want to change its renderer to Chromium so I am mapping methods overridden from WebView, WebView Client, and Web Chrome Client in my Browser Code to those in Chromium code. I can't find the mapping of…
0
votes
0 answers

when is WebView's getVideoLoadingProgressView called? No callback while buffering a fullscreen video

When is WebChromeClient's getVideoLoadingProgressView called? To what functionality/Use case does it correspond to? I tried putting a breakpoint on the method and debug the app while a full-screen video was buffering, but this method isn't getting a…
0
votes
1 answer

Open Play Store if market:// link tapped using WebChromeClient

I want to open Play Store if user taps link of this type: market://I tried using getUrl() but it fetches URL only for the first time, not when user taps further links inside webView. Here is my code: swipeLayout = (SwipeRefreshLayout)…
Sukhchain Singh
  • 834
  • 1
  • 8
  • 26