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
2
votes
3 answers

WebChromeClient.onGeolocationPermissionsShowPrompt() never called if locations are turned off

I've got a WebView that loads a page with location based functionality and a WebChromeClient with onGeolocationPermissionsShowPrompt() overriden. Enabling location for the page works fine when location services are on. The issue is that if the…
dwemthy
  • 471
  • 3
  • 9
1
vote
1 answer

Trying to pass the URL from webview to browser

I am using a webview of height 60dp and i am passing a local html file to it, by default when i click a link in the webview it has to open the browser . But strangely its opens the links with in the webview, i also tried the webview client and…
Chanakya Vadla
  • 3,019
  • 2
  • 22
  • 24
1
vote
1 answer

No sound in Webview

i have the Problem, that i have no sound at webview. On the native Browser on android the sound is working. The sound is a Flash. If you want to see, you can open http://www.colourmonics.de/android/android16 Here is my Script: package C.K; import…
Philip
  • 31
  • 1
  • 4
1
vote
0 answers

Remove youtube context menu from iframe android webview

When load a url in webview which contains iframe and embedded youtube video in it youtube doesn't show context menu. But when i load iframe with embeded youtube using HTML in webview it shows context menu on scroll. i have tried disabling long…
1
vote
1 answer

How to implement onShowCustomView method?

I want to play a video on a webview. For that I've found this link but I can't understand how to implement the onShowCustomView method of the WebChromeClient. I am using Android SDK 1.6. Is there an issue regarding this?
Android
  • 8,995
  • 9
  • 67
  • 108
1
vote
0 answers

chromium: [ERROR:web_contents_delegate.cc(217)] WebContentsDelegate::CheckMediaAccessPermission: Not supported

In latest OS getting this kind of error, anyone has solution while load camera in webview in latest OS. chromium: [ERROR:web_contents_delegate.cc(217)] WebContentsDelegate::CheckMediaAccessPermission: Not supported
1
vote
1 answer

Unable to play DRM content with WebChromeClient

I'm trying to build a simple webview in Android Pie that is able to play DRM content, using for example Bitmovin or Shaka Player. I have collected some snippets from other stackoverflow posts, but while Bitmovin/Shaka can apparently detect widevine…
Mondego
  • 175
  • 1
  • 11
1
vote
0 answers

Android webview microphone capture issue

I am trying to record audio using an app that runs WebView. For example, I load the app in the URL https://online-voice-recorder.com/ and records some audio over the mic. I have given enough permissions and able to record and replay the audio. On…
Babu James
  • 2,740
  • 4
  • 33
  • 50
1
vote
1 answer

Problem in full screen mode in android webview youtube video in android 6

Whats wrong with android 6? Please help me solve this problem. The ************ in the first line of the logcat is a short link. To see that link click here. I've tried many other links but same problem exist in android 6. Logcat: I/chromium:…
1
vote
0 answers

Slick Slider Swipe Gesture not working in WebChromeClient

I have a WebView set up through WebChromeClient. In the webpage, I've got a slick slider Everything works there, except the swipe right or left on the slider. How can I handle the swipe gesture through WebChromeClient?
Libin
  • 2,442
  • 3
  • 20
  • 31
1
vote
1 answer

Does a Web Worker run on the main ui android thread or a separate thread?

I have an OLD application for the Android that uses WebChromeClient public class MyWebViewClient extends WebChromeClient to run a web page on the Android as an application. The original intent was to keep the displays for apps (browser, ios, and…
1
vote
1 answer

How to get cookies saved by a Chrome Custom Tabs?

I'm looking for a way to retrieve a cookie saved by a Chrome Custom Tabs. I tried to use the CookieManager but the result is always null. Here's my code : CookieManager.getInstance().getCookie(url); // return null url value is correctly url encoded…
François Legrand
  • 1,151
  • 1
  • 14
  • 25
1
vote
0 answers

WebChromeClient open app in chrome browser.I want to open it in WebView.What's the solution for that

WebChromeClient open app in chrome browser.I want to open it in WebView.I used WebChromeClient for KitKat devices and for other WebViewClient used. What's the solution for that?
1
vote
1 answer

Cordova 6.2.3 has no WebChromeClient,how can i override the onJsPrompt()?

when I update my project from cordova 3 to cordova 6,I find there is no WebChromeClient,but my project used this Class and override the onJsPrompt(). Now,how should i do base on Cordova 6 to override OnJsPrompt() package com.qtby.gxwlc; import…
June Deng
  • 11
  • 1
1
vote
0 answers

Intercept requests from WebView in WebChromeClient

I have a question related to this one: Prevent data from loading using shouldInterceptRequest I know I need to use WebChromeClient now but I have no idea which method in this class is an equivalent to the shouldInterceptRequest. Is that another…
shurrok
  • 795
  • 2
  • 13
  • 43