318 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
121
views
How can I get the WebView search bar to navigate as well as search?
My app creates a Web browser using WebViewClient like so:
browser_page = findViewById(R.id.browser_page);
browser_page.getSettings().setJavaScriptEnabled(true);
browser_page....
2
votes
1
answer
2k
views
WebViewClient.shouldOverrideUrlLoading() documentation clarification
Referring to the API level 24+ only version of shouldOverrideUrlLoading, the documentation clearly states:
Note: Do not call WebView#loadUrl(String) with the request's URL and
then return true. This ...
1
vote
0
answers
607
views
Add Custom Header to Xamarin WebViewClient
Though there were already some threads on issues like this a few years ago (e.g. Add Authorization header to all requests in Xamarin Forms Android WebView), I am wondering now if there were a solid ...
4
votes
2
answers
3k
views
android webview not loading/opening pdf
My webview is loading google chrome. When the user browses the webview app he can navigate to any links which is working fine. But when the user navigates to a link which contains pdf my webview fails ...
0
votes
0
answers
821
views
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 ...
1
vote
0
answers
2k
views
How to allow auto fill of credentials in WebViewClient Android App
We have a web application and want to provide an app for it. We use a simple WebViewClient application which opens our web application. This works good.
For authentication the web application doesn't ...
2
votes
0
answers
162
views
How to throw Network errors in Android WebView?
I am using Android WebView in my App.
I know that there is a method onReceivedError(final int errorCode, final String description, final String failingUrl) that gets triggered in WebViewClient
I know ...
4
votes
0
answers
828
views
Unable to redirect to app from WebViewClient with custom URI scheme on Android 11
I would like to implement Twitter's social login function in an Android app developed based on Flutter, but after logging in with WebView, the redirect to the app using custom URI scheme does not work ...
0
votes
0
answers
354
views
Is it possible to conditionally block AJAX calls in Android webview?
I have implemented the URL whitelisting in the Android web view by using shouldOverrideUrlLoading.
override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean {
...
0
votes
1
answer
569
views
Android WebView loadDataWithBaseURL shouldInterceptRequest
I am using a WebView to display an HTML string with img tags. These tags must display pictures stored in a ZIP archive, so I need to intercept the images requests to return a ZipInputStream.
I'm thus ...
1
vote
1
answer
2k
views
Xamarin.Forms WebView: e.Cancel = true in Navigating event is not working on Android when using custom WebViewRenderer
I want to redirect opened URLs to an external browser in my WebView, so I hooked its Navigated event:
webView.Navigating += (s, e) =>
{
if (IsExternalUrl(e.Url))
{
try
{
...
2
votes
1
answer
3k
views
Flutter Intercept all requests from WebView
is there any equivalent of this in flutter for intercept all request from webview
webview.webViewClient = object : WebViewClient() {
override fun shouldInterceptRequest(view: WebView?,request: ...
0
votes
1
answer
889
views
Download Path of file from a website loaded in WebView Android
I am working on a project where use case is we have to load a web page url in webview which has a button when user clicks on button it will download pdf file. And we have to open that downloaded PDF. ...
3
votes
0
answers
230
views
WebViewClient onLoadResource analog in WKWebView
I did saw the documentation of WebViewClient of android and examine method <onLoadResources - Notify the host application that the WebView will load the resource specified by the given URL.>.
My ...
0
votes
0
answers
255
views
onPageFinished not called on real device when no internet connection
recently I have implemented a WebView for my app. I have override the onPageFinished function of WebViewClient and it works fine most of the time. But when I tested it on real device (Samsung S10), ...