133 questions
0
votes
0
answers
44
views
How to detect a process termination on Android through NavigationDelegate.onWebResourceError in webview_flutter
We are using flutter and webview_flutter as a native wrapper around our webpage. We can see this error in our Play Console:
[FATAL:third_party/crashpad/crashpad/client/crashpad_client_linux.cc:744] ...
8
votes
1
answer
3k
views
WebViewWidget issue iOS Could not cast value of type NSNull (0x1ec725448) to 'webview_flutter_wkwebview.AuthenticationChallengeResponse' (0x10591eef8)
I'm encountering the following error when using the webview_flutter package in Flutter:
Could not cast value of type NSNull (0x1ec725448) to <'webview_flutter_wkwebview....
0
votes
0
answers
70
views
Flutter WebView: Error using JavaScript with HTML string instead of URL (webview_flutter)
I am creating an app in Flutter and I am facing the following problem with the WebView...
If I use a URL for a specific website that has JavaScript and uses localStorage for something, it works fine. ...
0
votes
1
answer
467
views
WebView not loading in release mode on physical iOS device, but works in simulator and debug mode
I'm using the webview_flutter package in my Flutter app to display a webpage when a button is pressed. Everything works as expected in the Xcode iOS simulator and when I run the app on a physical ...
2
votes
1
answer
604
views
'Flutter/Flutter.h' file not found on iOS 18
When I ran the app on iOS 18 (Device - iPhone 13 Mini), It showed the following error.
Flutter/Flutter.h' file not found in file included from /Users/mdsabbirhossain/.pub-cache/hosted/pub.dev/...
0
votes
0
answers
130
views
I'm using webview_flutter 4.9.0, but I couldn't find how to implement "pull to refresh" feature
I've googled it a couple of hours of pull to refresh feature, but coudn't find it yet.
Some of them say to use RefreshIndicator but didn't work to webview_flutter.
And I've found this
How can i pull ...
0
votes
1
answer
52
views
Can we open native apps from flutter inapp-webview
I have created a flutter app which uses Azure ADB2C for login, this login screen in displayed as webview in flutter app.
Once successful login user has to authenticate using Microsoft authenticator ...
1
vote
1
answer
608
views
Flutter android Webview from HTMLString stays blank until interaction then shows content
i have the Problem that the webview in android stays blank (black or white depending on android theme) until some interaction, be it touching the screen, rotating the device or using the volume ...
2
votes
1
answer
424
views
How to send a custom header in a POST request in Android using webview_flutter
This documentation states that it cannot be done, so I'm looking for an alternative solution:
Currently, setting custom headers when making a post request with the WebViewController's loadRequest ...
1
vote
1
answer
235
views
Play Video from URL in Webview. But Video stops frequently automatically. Controls doesn't work
In WebView Video stops frequently automatically. Controls doesn't work. Default Play/Pause buttom appears in center of video. Sometimes cause flickering issues with video controls.
I want to achieve ...
1
vote
1
answer
250
views
Error in Flutter when displaying a video (chewie) at the top of a column, and an expanded webview below, only in release mode
I want to create a Flutter app with the following layout:
A column with two children:
At the top, a video player (chewie) at the correct aspect ratio
Below, a webview covering the remaining space
I ...
0
votes
1
answer
191
views
Flutter WebView tap target dislocated downward on Android
I'm attempting to utilize a webview plugin to display an HTTP website (specifically the login flow from a WebDAV server). However, in every plugin I've tried, when I click a button or link, nothing ...
1
vote
1
answer
107
views
Flutter webView: how to set domain for loadHtmlString?
<html>
<head>
<script src="https://www.google.com/recaptcha/api.js" async defer ></script>
</head>
<body>
<div class="g-...
0
votes
1
answer
421
views
Flutter Webview: Pass data to Flutter webview
I'm using the old version of Flutter_webview(version 3.0.4). I have pass my data to webview and it works well. But now I want to use the latest version, which is webview_flutter: ^4.7.0. How do I pass ...
6
votes
1
answer
3k
views
Error updating Flutter project: CocoaPods could not find compatible versions for pod "webview_flutter_wkwebview"
When attempting to update my Flutter project to a new Flutter version, I encountered the following error related to CocoaPods and the webview_flutter_wkwebview plugin:
[!] CocoaPods could not find ...
0
votes
0
answers
259
views
OAuth 2.0 verification problem in flutter
I'm using the webview_flutter package in my Flutter app to perform Google Fit authentication and retrieve heartbeat data. However, I'm encountering issues with verification because the requests made ...
0
votes
0
answers
216
views
How to run javascript code when the app is on the background with webview_flutter?
I have a very important problem.I know that there are many posts about it, but I haven't found any solution.
I am coding an app that use the plugin webview_flutter to display a webpage with a list and ...
0
votes
2
answers
871
views
WebView flutter does not load the page properly
I have created a page in flutter that shows a webpage. I used webview_flutter, but it doesn't load the page properly. It shows the page but only in the 10% of the screen and the other 90% shows the ...
0
votes
1
answer
254
views
Loading url in flutter using webview_flutter does not load images
I am developing a flutter app and I want to load static urls e.g. "About Us" page from the website. I am able to load the page but I have noticed that images are not fetching. I also suspect,...
1
vote
0
answers
258
views
Communicate between Wrapped angular web app to flutter app (webview_flutter)
I have wrapped the angular web app into flutter app using webview_flutter and WebViewWidget
Now I need to send the string message angular app to flutter - while click the button in web app
I have ...
2
votes
1
answer
129
views
While rendering the webview in Flutter App, if there are any links to navigate it should navigate to respective link using webview_flutter 4.0.2
This is my code:
import 'dart:io';
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';
import 'package:webview_flutter/webview_flutter.dart';
...
3
votes
0
answers
82
views
Enabling WebView Cookies in Flutter
I'm trying to enable the cookies for a paystack payment gateway i'm implementing in my flutter application using the WebView_flutter package. Upon implementing the necessary code for the ...
0
votes
1
answer
726
views
webview_flutter, new window pop up not working in IOS platform
when i click on a button in my webview it opens a new window pop up in web , it renders in Android devices but in IOS it gives me 'about:blank' in url and shows blank screen, i have tried different ...
2
votes
0
answers
322
views
Javascript callback handler in WebView for Flutter Web
I'm using the webview_flutter package for displaying local HTML + JS content in my flutter app. I'm using the addJavaScriptChannel method of the WebViewController to communicate with the HTML app. ...
1
vote
1
answer
1k
views
Catch window.open() or target _blank Webview_flutter
I'm currently using webview_flutter for webview appearance. But the problem is I can't find the way to get button tap on webview which is window.open(url) or target="_blank".
I want to ...
0
votes
1
answer
283
views
How to pass headers in html string's urls (eg: src = "google.com") in webview_flutter 4.2.2
I have a requirement where I need to display HTML string in webview_flutter (https://pub.dev/packages/webview_flutter) Plugin. The issue is that the html contains some urls that are not loaded because ...
1
vote
0
answers
163
views
How to load a HTML String with relatives paths using the loadHtmlString method of the WebViewController
I am trying to use a WebViewWidget on flutter to display a HTML content saved in a String.
I want to use a String instead of a file because the content could by modify several times and in this way I ...
0
votes
0
answers
207
views
I am using webview_flutter to show html content in mobile in emulator and in debug mode it is working but when i released the apk is not working
it is showing the black screen when the html page is
I/flutter (16317): #0 Element._debugCheckStateIsActiveForAncestorLookup.<anonymous closure>
framework.dart:4334
I/flutter (16317): #1 ...
1
vote
2
answers
2k
views
How to display webpage title in the App Bar with webview_flutter
Trying to display the title of the webpage in the AppBar using the getTitle() method of webview_flutter.
It seems to work intermittently when the Hot reload is used on the debug bar but when I ...
0
votes
1
answer
876
views
how to remove unused plugin in pubspec.lock
for example, i just change from webview_flutter to flutter_webview_pro.
and when i try flutter build apk --split-per-abi, this error comes out :
failure occurred while executing com.android.build....
0
votes
1
answer
367
views
Call a webview as child Container in multi screen App in Flutter
I have Multi screen app contains a bottom navigation bar, i need a page as webview as child container.
App is working fine but Webview is not loading by Container
I know we need to replace the ...
0
votes
0
answers
46
views
How to get the html text that is displayed on the screen with webview_flutter? [duplicate]
with FLUTTER :)
I would like to retrieve the text that is displayed on the screen when I load a page on a website in order to be able to analyze it
I would like to be able to do it with webview_futter ...
1
vote
0
answers
339
views
Redirection to link in webview_flutter: ^4.2.1 is not working in android build
Redirection to a link in side webview of webview_flutter: ^4.2.1 is not working on android build but its working fine on Ipad and Iphone
here Is the controller i have used
controller....
0
votes
1
answer
1k
views
Intercepting Remote Image Requests in Flutter WebView and Fallback to Local Assets
Hello Flutter Community,
I am currently working on a project that involves a Flutter application which essentially serves as a shell for a Vue3 web app, embedded via the webview_flutter package. ...
3
votes
3
answers
2k
views
How to autofill login id and password in third party website in Flutter webview?
Currently, I am using flutter inappwebview plugin, I want to create an auto-login like google chrome asking if we want to save passwords, and then autofill next time. Is it possible?
0
votes
1
answer
1k
views
Flutter WebView js channel does not work on android device
In my flutter project I use webView for 3d secure process. After the bank approve the page which opened in webView send some json data with js and I get this data by using js channel feature. All ...
0
votes
1
answer
502
views
running a custom JS function from Flutter using webview package
My Flutter app loads a webpage using the webview_flutter package. I have successfully passed info from the webpage to Flutter, using javascriptChannels. I have also successfully run built-in ...
4
votes
3
answers
7k
views
Using WebViewCookieManager.setCookie of webview_flutter
I'm quite new to Flutter. Currently I'm facing with problem of usage package webview_flutter from flutter docs at latest version (which is 4.0.7) for initial cookie when calling Webview in Flutter
...
0
votes
2
answers
1k
views
How can i migrate my code from flutter_webview_plugin to webview_flutter?
I'm trying to update an old flutter project. But i'm having some problems with the flutter_webview_plugin, so i want to migrate to webview_flutter. The problem i have is that i don't know how to adapt ...
4
votes
0
answers
554
views
Flutter WebView retain state of widget to prevent reload
I want to open a Webview on button click and after coming back from webview clicking on the same button, Webview should not be reloaded.
To achieve this I have tried AutomaticKeepAliveClientMixin but ...
3
votes
3
answers
3k
views
The class 'WebViewController' doesn't have an unnamed constructor
I have a problem with my flutter app using the package webview_flutter , here Is my code:
pubspec.yaml
webview_flutter: ^4.0.6
dart
WebViewController breachWebViewController = WebViewController()...
1
vote
0
answers
826
views
How to store login credentials in localstorage of a webview using webviewcontroller.runJavaScript method in flutter
Iam implement webview_flutter package in my flutter app.Iam not able store login credentials to local storage of a webviewwidget using webviewcontroller.runJavaScript method. iam try two type of ...
0
votes
1
answer
2k
views
webview_flutter_web is not working in flutter Web
I'm using webview_flutter_web library for loading the url in webview (for flutter web-build), when i'm trying to load to load https://www.youtube.com/, it's not loading showing error as refused to ...
8
votes
1
answer
7k
views
Flutter: webview_flutter just displays blank (white) on iOS
I got it to work on Android, the WebViewWidget displays correctly with the html content, no problem.
For iOS it just displays blank/white. I tried what I have seen suggested by people all over the ...
1
vote
1
answer
2k
views
Flutter: how to select text in a WebView (WebViewWidget) and do something with it in a function?
I want the users of my app to be able to select text (words, but also whole sentences) in a WebViewWidget, and have an audio of that text played to them (via tts). I only want this to work with ...
0
votes
3
answers
1k
views
how can I remove header and footer in Flutter WebView?
This is what I used
There's this video by Joannes Mike on YouTube I followed on how to remove header and footer in Flutter WebView but it seems flutter had upgraded her library and this functions don'...
-1
votes
3
answers
668
views
Reload a webview
I'm trying to reload a WebView page when I click a button on the Appbar, using the webview_flutter package. For that I'm using a WebviewController, but I'm not getting it... When I click on the button,...
3
votes
0
answers
390
views
Is there any option available to make setDomStorageEnabled to true in webview_flutter plugin?
I am trying to add webview inside my flutter application and for that i need to allow dom storage to access data stored. Currently i guess web_view flutter plugin not allows any way to ...
1
vote
0
answers
186
views
Is there a way I can make my webview scrolling smoother?
PageView(
scrollDirection: Axis.horizontal,
children: [
StatefulPageview( //Displays vertical pageview
articles: state.articles,
...
0
votes
1
answer
567
views
net:: ERR_SPDY_PROTOCOL_ERROR - Flutter webview app on android 6.0 Marshmallow
I created a flutter webview application and successfully tested on many emulator android api versions & a physical device running on Android 11. Lastly when I'm testing on my older android 6.0 ...