Questions tagged [webview]

Elements in graphical user interfaces that host HTML content. For Android, look at the android-webview tag. For iOS, look under uiwebview or wkwebview. For VS Code, look under vscode-webview.

A user interface element that displays web pages. Generally, it is the basis upon which you can roll your own web browser or simply display some online content within your application.

: WebView class reference for Android

: WKWebView class reference for iOS

: UIWebView class reference for iOS (deprecated)

: Webview API for Visual Studio Code

: WebView that is used in Ionic

WebView class reference for macOS (deprecated)

webview tag reference for Chrome apps

WebView: a Node that displays WebEngine content.

22469 questions
54
votes
4 answers

How to disable cache in android webview?

In my android webview my webpage is loading even without internet because of cache, so i want to disable cache in android webview, can anyone help me how to do this? I am using following lines in my webview, but still i am not able to disable…
user3153083
  • 571
  • 1
  • 5
  • 8
53
votes
11 answers

Strange UIView-Encapsulated-Layout-Height Error

I'm making test application, so in my tableviewCell in storyboard I have imageView & webView (webview to show html-text). I set constraints like top/left/right/height=200 for imageView, spacing=5 between them & left/right/bot for webView, so I want…
Zaporozhchenko Oleksandr
  • 4,660
  • 3
  • 26
  • 48
51
votes
6 answers

Detecting Webview Error and Show Message

I'd like to show an error message when there is an error loading a webview page (No connection). This is what I have so far, without the error handling code: public class TrackerPage extends Activity { // @Override private WebView…
HighLife
  • 4,218
  • 7
  • 40
  • 56
49
votes
5 answers

Disable address bar in Android webview

How do disable and hide the address bar from a WebView?
Jono
  • 17,341
  • 48
  • 135
  • 217
49
votes
7 answers

React Native WebView postMessage does not work

I can't get React Native WebView postMessage to work. The React Native app successfully receives the post message sendt from the web app. But the web app does not receive messages sendt from the React Native app. My simple web…
Skarbo
  • 697
  • 1
  • 6
  • 12
48
votes
4 answers

Caching in Android webview

Which one is faster way to load mobile web pages and non mobile web pages in Android webview; loading cache or not loading that at all? And what is recommend style to load that? Right now when I don't load cache at all non mobile sites are much more…
Eljas
  • 1,187
  • 4
  • 17
  • 37
48
votes
7 answers

Flutter Webview two way communication with Javascript

I have an html file that I am loading in Flutter webview using flutter_webview_plugin. I am using evalJavascript to call function in my javascript code, meaning flutter(dart)->js. However, I also need some way to communicate back something to…
shrad
  • 491
  • 1
  • 4
  • 4
48
votes
7 answers

Debugging WebView in React Native apps

I have a React Native App that uses WebView to render an HTML page from the assets. The page has some javascript that does some processing. The problem is that I cannot see the console.log statements from the web view. I have tried the Chrome Remote…
Mohsin Shafique
  • 935
  • 1
  • 7
  • 14
48
votes
5 answers

android Failed to load WebView provider: No WebView installed

Recently, we've started seeing this new entry in our crashlytics which says that android can't find the webview package on the device. Here's the full stacktrace (classes from our source code have been replaced with ..... : Fatal Exception:…
Yash
  • 5,225
  • 4
  • 32
  • 65
48
votes
2 answers

Chrome App webview and touch scroll propagation

I am in the happy position of replacing a Windows 8 Metro app with a Chrome packaged app. For the time being, it needs to mimic the look and feel of the Metro app. The main page consists of multiple webviews arranged horizontally with a large amount…
powski
  • 489
  • 3
  • 4
48
votes
4 answers

How can I see Javascript errors in WebView in an Android app?

I'm trying to run javascript in WebView in an app. I'm developing on Nexus 7. The html / javascript works fine on Chromium, but certain actions aren't happening on the tablet. Is there a way of seeing if any of the javascript itself is failing on…
interstar
  • 26,048
  • 36
  • 112
  • 180
48
votes
7 answers

How to make a Scroll Listener for WebView in Android

How to implement the Scroll Listener for WebView in Android i tried this but its not calling my Log.i on scrolling the webview. package com.example.webview.full.width; import android.content.Context; import android.util.AttributeSet; import…
Qadir Hussain
  • 8,721
  • 13
  • 89
  • 124
47
votes
7 answers

WebView "flashing" with white background if hardware acceleration is enabled (Android 3.0+)

I have an issue with the WebView (Android 3.0+), which the WebView always displays a white background before display my black background ("flashing"). Here is my simple test code: @Override public void onCreate(Bundle savedInstanceState) { …
47
votes
8 answers

Android WebView inside ScrollView scrolls only scrollview

In my app I have a ScrollView that contains some linearviews, some textviews and One Webview, then other linear layouts etc. The problem is that the WebView does not scroll. The Scroll listens only on ScrollView. Any suggestions??
Panos
  • 7,227
  • 13
  • 60
  • 95
47
votes
8 answers

Android WebView JellyBean -> Should not happen: no rect-based-test nodes found

My application is using a lot of webviews which are lying in fragments which are hold by a ViewPager. Whenever i swipe through the app on my Galaxy Nexus with Jellybean on it i get the following console message again and again: 08-23 13:44:03.374:…
Ostkontentitan
  • 6,930
  • 5
  • 53
  • 71