Questions tagged [android-webview]

Part of the Android API. A View that displays web pages. This class is the basis upon which you can roll your own web browser or simply display some online content within your Activity.

android-webview
Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Android app no ​longer works correctly after distribution via Google Play

I programmed a simple Android app. It consists of little more than a WebView and is simply a wrapper app for a web application. When I log in to the web application, my login details are stored in a ...
Hans Gräfe's user avatar
0 votes
0 answers
6 views

Is there any security issues with WebView.LoadDataWithBaseURL(String, String, String, String, String) Method ? How to safeguard webview

I am looking for the security measures to prevent webview from attacks. I have followed the below link and restricting input urls passing into webview.loadUrl(). https://medium.com/@kliment.jonceski/...
Megala Mani's user avatar
0 votes
0 answers
24 views

100ms delay between pointermove events in Android webviews?

I noticed that gesture animations in Android webviews felt laggy, so after some debugging, I found the root cause: pointermove events have a ~100ms delay between them whereas it should be a ~17ms ...
Leo Jiang's user avatar
  • 25.3k
0 votes
0 answers
20 views

How to load HTML file from from web url and show in WebView?

I have a web link that loading *.html file if I open it from browser. If i try to put this url as is in my WebView it's simply doesn't show anything. I guess I need to load this HTML file somehow and ...
Dante313's user avatar
  • 181
-1 votes
1 answer
30 views

Android WebView Crashes for all URLs except `google.com`

I wanted to have a website inside android app. So I made a very simple app (from this youtube tutorial) and if I put grafanaWebsite.loadUrl("https://google.com/") into the class file, I get ...
Stijn B's user avatar
  • 350
0 votes
0 answers
17 views

How can I build android chromium for linux without sudo permission to install those dependencies?

To build android chromium, there is a script to install additional build dependencies that require sudo permission. But I am planning to do in other instance which don't have the root permission. Is ...
Jia Yih Ang's user avatar
0 votes
0 answers
10 views

Click on <a> tag is not being added to webview history

I have an app which renders its screens on a webview. We have recently found a very strange issue. whenever we click on any tag links and press back button it doesnt go navigate to the screen where ...
droidev's user avatar
  • 7,372
1 vote
2 answers
48 views

How to display embedded PDF file in WebView?

I need a suggestion/advice on how to solve this. Currently I am building a Web application in PHP 8.2 where users can upload PDF files and only users with certain roles have the ability to see them. ...
Elysianitez Zuhair's user avatar
0 votes
0 answers
6 views

Google Password Manager in WebView is asking for username but not in Chrome

We are running a Website and an App. Our App is just a WebView which is loading HTML pages. The registration page is using a simple form login, which is simple HTML. In essence it looks like this: <...
Janning Vygen's user avatar
0 votes
0 answers
22 views

android webview unable to invoke javascript function from native code

I am trying to invoke a javascript function from Android native code which is supposed to show an alert. When I try to run the app the alert never shows up in the webview. The flow is that on my web ...
luckysing_noobster's user avatar
0 votes
0 answers
34 views

How to replace WRITE_EXTERNAL_STORAGE & READ_EXTERNAL_STORAGE for android 13 and above with READ_MEDIA_*

I have an Webview Android app developed in Android Studio for android 5.0(Lollipop) above, till android 12 all the permissions for media and files, pictures and video were working fine, but now with ...
codershhoder's user avatar
0 votes
0 answers
16 views

Image load error Webview Android (droid logo)

In some devices when I try to load a image url in a WebView I get the following (error) image: Other devices load the image with no problems, how can I fix that?
Addev's user avatar
  • 32.3k
0 votes
0 answers
6 views

Pointer event clientX is wrong within Android Webviews?

I have some touch event handlers, e.g.: window.addEventListener('pointermove', e => console.log(e.touches[0].clientX)); If I slide in my finger from the left edge of the screen, on Android Chrome, ...
Leo Jiang's user avatar
  • 25.3k
0 votes
0 answers
44 views

SMS receiving and autofill in html input text by WebView

I want receive sms activation code and only code(no text) autofill in the specified input after receiving the SMS, I receiving SMS, but I don't know the rest. How do i do? html: <form action="/...
Lira Turk's user avatar
0 votes
0 answers
27 views

How do I correctly fill in a webpage form from an android app?

This is the site: https://www.parking-servis.co.rs/eng/edpk On it, there is the form with a text field and a button. This is the source code from the page: <div class="edpk-form"> ...
Nemanja's user avatar
  • 210
0 votes
0 answers
26 views

Asset file not being included on older versions of Android

I have a webview Android project. It's working fine enough on later Android Versions, but when I use API 25 or 26 (26 is Android 8 I believe), there's a certain file not being copied into the ...
TKoL's user avatar
  • 13.6k
0 votes
0 answers
13 views

WebView Automation Android - Capture Steps performed by the user & Repeat it automatically

I need help to automate WebView, requirements first capture/record steps(NOT Video Record) performed by the user like Scroll, Entering credentials, Navigating to another webpage, or anything that a ...
M S's user avatar
  • 1
0 votes
0 answers
32 views

Null Pointer exception when using progressbar with webview

I'm encountering a NullPointerException in my Android app when trying to load a WebView inside a Fragment. The error occurs specifically in the onProgressChanged() method of the WebViewClient. Here's ...
Naveen Shah's user avatar
0 votes
0 answers
15 views

Switch between native activities to web view activity from Espresso

I am automating the login scenario using espresso. My scenario is: I have to launch the activity I need to select the env and details from app Once clicking the login button, it automatically ...
Ramesh Patil's user avatar
0 votes
1 answer
32 views

Issue with calling JavaScript interface function in Android WebView

I am encountering a peculiar issue with calling JavaScript interface functions in my Android WebView. I have defined a JavaScript interface class as follows: public class JavaScriptInterface { ...
Amir's user avatar
  • 23
0 votes
0 answers
42 views

Resource-id is not getting displayed in appium inspector

Android device name: Pixel 7 [OS version: 14] Android System WebView version: 122.0.6216.106 Resource-id and id attribute are not getting displayed in appium inspector Steps to reproduce: with ...
Janani Rajendran's user avatar
0 votes
0 answers
26 views

Current Location on the react and android webview is working in Android Studio but on the android app

I am facing an issue where Current Location on the react and android webview is working in Android Studio but on the android app. Here is the code that i am using const getCurrentLocationNew = () =&...
user1844634's user avatar
  • 1,231
0 votes
0 answers
21 views

Android: How to disable permission popup from webview and show a native permission dialog

I am using webview in my application for KYC process. To open camera for uploading documents Webview shows a permission dialog to allow access to camera as shown in attached screen shot. My goal is to ...
Shahzaib Ali's user avatar
0 votes
0 answers
24 views

Android WebView Triggers Double Requests for a One-Time Use Download Link

I'm experiencing an issue with Android WebView concerning a download functionality implemented on the web frontend. The process involves a button that, when clicked, triggers a request to generate a ...
Amadeusz Blanik's user avatar
1 vote
1 answer
45 views

Android WebView can't load web page, and returns white screen

I'm trying to create a simple application using WebView, which should simply open the site "google.com" However, instead of the site, I just get a white screen, without any errors, etc. Can ...
jose4ka's user avatar
  • 41
0 votes
0 answers
33 views

Can I build my Vue project to run android WebView?

I have a Vue web project, which is used in my android apps. The Apk consists native android code with my web apps in it as a .zip file I want to try run my web app locally on WebView to test it, ...
Van Dominic's user avatar
0 votes
0 answers
25 views

Cookie manager is not deleting the cookies or expire them

I'm utilizing the android.webkit.CookieManager for managing cookies within my WebView. My process involves initially clearing out old cookies by setting their Max-Age=0, followed by introducing new ...
Svilen Rusev's user avatar
0 votes
0 answers
10 views

Jetpack Compose WebView: Softkeyboard Enter Key behaves differently based on number of input fields

I'm encountering behavior in Jetpack Compose WebView where pressing the Enter key acts differently depending on the number of input fields on the loaded webpage. Here's the issue: Single Input Field: ...
Rhythm Khatri's user avatar
0 votes
0 answers
32 views

Navigate back from Chrome custom tabs

Could you please help me? I navigate from the Details screen to Chrome custom tabs but when I click on the back button I need to press the back button twice to go back to the Details screen. When I ...
Alex20280's user avatar
  • 165
0 votes
0 answers
39 views

How to Download Blob video from Flutter inAppWebView

I am trying to download a video file from a website which records your video and lets you download them using blob. the websites shows saved to download but nothing happens. heres my code: // ...
Sagnik Barik's user avatar
0 votes
1 answer
92 views

Dark theme of webview doesn't work in AndroidView Jetpack compose

Dark theme of webview doesn't work in AndroidView Jetpack compose. RichEditor extend webview. No errors. Simply can't apply dark theme to view implementation 'jp.wasabeef:richeditor-android:2.0.0' @...
Slava's user avatar
  • 523
0 votes
0 answers
16 views

When Webview load iframe and any page from that loaded iframe url, Share is not working in app

I am loading webview in my android app. I have added addJavascriptInterface to my webview also. Previously I could track the share action from webview page (e.g. link1) to my app and open my desired ...
SN J's user avatar
  • 1
0 votes
1 answer
54 views

Modify android WebView and create whitelist

This is my first time I'm asking question on stack overflow, so sorry if my question isn't clear, but I'll try my best🤗. This question is for android developers. So I'm trying to create a system that ...
admiau8's user avatar
0 votes
0 answers
63 views

Can't click a button in WebView via Javascript in Android Studio

I'm creating an Android app with WebView to show a webpage. I want to link a button in my app's layout (triggerButton) to activate a button (btn1) on the webpage when pressed. However, I'm struggling ...
jan's user avatar
  • 1
0 votes
0 answers
28 views

WebView App crashes when clicking on Data Table Plugin export button

Hi i have a website using Data Tables plugin to show and export data in different formats like excel, csv and pdf. The website is running perfectly fine and buttons to export is also working. Now i ...
Yash Aggarwal's user avatar
0 votes
0 answers
17 views

How can I get JSON file with webview from local html

I want to get a JSON file from my HTML file in the assets folder. But I get a java.io.FileNotFoundException: No content provider: error in my app. The DownloadListener returns a URL of blob:file:///...
OLTO and SUGI-cube Project's user avatar
0 votes
0 answers
122 views

Flutter WebView Issue with Stripe Checkout: "Stripe.js requires 'allow-same-origin' if sandboxed."

I'm encountering an error while attempting to open Stripe Checkout in a Flutter webview on android, specifically: "Stripe.js requires 'allow-same-origin' if sandboxed." Here's a breakdown of ...
Tanjim ahmed's user avatar
0 votes
0 answers
70 views

Problem with displaying webpage content in WebView on Compose

I have a problem showing a page on Webview. When I pass url from Habr it is shown fine but if I pass url from techcrunch.com it shows less then a half of the screen. URL: https://techcrunch.com/2024/...
Alex20280's user avatar
  • 165
2 votes
1 answer
120 views

Why does DatePicker in Flutter InAppWebView look old?

I am creating a Flutter application that consists of displaying a simple webview using the InAppWebView 6.0.0 dependency with the latest stable version of Flutter. It's happening to me that when I go ...
Ángel Moreno Muñoz's user avatar
0 votes
0 answers
27 views

Why result of compose webview and xml webview is not the same?

xml webView can render the result from url which is image of test qr code. but when I use compose webView it is not working. url is https://dev-api.apps.kpc-dev.com/contents/download?url=https://api....
freeman's user avatar
  • 94
0 votes
0 answers
22 views

Jetpack compose webview calculation of measured height

val calculatedHeight = contentHeight * scale - viewHeight contentHeight: document.body.scrollHeight scale: displayMetrics.density viewHeight: webview.measuredHeight I am using the above formula to ...
SarahAlexa's user avatar
0 votes
0 answers
32 views

WebView's onReceivedError not triggered when internet connection is lost in Android app

I'm encountering an issue with the onReceivedError method of the WebViewClient in my Android application. I've implemented the onReceivedError method to handle errors when loading web resources, ...
Duliba Ionut's user avatar
1 vote
0 answers
64 views

Angular App Running Slow on Android Web View / Chrome

I've an Ionic Hybrid Application which internally using Web view to Run the Application(This is an Angular Application which using Angular Version 14). This app running very slow after January 23, ...
Tejendra Choudhary's user avatar
0 votes
0 answers
113 views

Android WebView vs CustomTabs

As a part of my project, I'm expected to load a webpage using a web view within the app. I could either use WebView or CustomTabs but the favoured option was to go with WebView for the UI ...
Sidharth's user avatar
0 votes
0 answers
43 views

Prevent link from opening in chrome custom tabs, but in webView instead?

Is there a way to make an app link/deep link to be intercepted before it is loaded in chrome custom tabs and load it into a webView instead? That is, to switch between in-app-browser (for Web NFC ...
Dan's user avatar
  • 173
0 votes
0 answers
14 views

Webview to scroll up when keyboard appear not working as desired

I have a webView which loads a link data having multiple input fields and a button at the bottom(the link I am using is third party and they can't make changes at their end). The issue is whenever ...
Vanisha Gaba's user avatar
0 votes
0 answers
51 views

why does this javascript function not work when called from a webview?

When the following function is called from a browser, the expected file is correctly downloaded. When I display the same page in a WebView and I click on the same button, no file is downloaded. async ...
ema3272's user avatar
  • 1,041
0 votes
0 answers
135 views

How to save the state of webview page selection/url while navigating in jetpack compose

I have a dynamic user interface that displays a variable number of tabs based on certain conditions. Each tab contains a web page displayed within an AndroidView wrapper. When navigating between tabs, ...
prat's user avatar
  • 607
0 votes
1 answer
91 views

How to avoid Javascript making Android WebView unresponsive?

I recently ran into an issue where a web app is opened inside a WebView and starts executing, in short, a never-ending Javascript rendering loop. Exiting the WebView while the loop is going and ...
Duong Vu's user avatar
0 votes
0 answers
19 views

React native webview keeps cutting off page with web buttons

Is there a way to find the height of the web buttons to add the correct margin at the bottom of the webview? I keep trying to do some sort of calculation to guess it. return ( <> <...
Mike Flynn's user avatar
  • 23.5k

1
2 3 4 5
150