Open stephanievea opened 3 years ago
There is a fix described here:
In your project folder, edit the ./ios/.symlinks/plugins/flutter_webview_plugin/ios/Classes/FlutterWebviewPlugin.m
file and after line 144 insert the following:
if (@available(iOS 9.0, *)) {
if (userAgent != (id)[NSNull null]) {
self.webview.customUserAgent = userAgent;
}
}
Then do a flutter clean/pub get and it should resolve the issue.
WebviewScaffold( primary: false, resizeToAvoidBottomInset: !Platform.isIOS, userAgent: "SomeRandomUserAgent", url: "$someUrl", appBar: ab, initialChild: Container(), withLocalStorage: true, withJavascript: true, );