-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
In my project, I found WebView in my App will be frozen on iOS with flutter stable version 1.20.2.
This issue is not happened in flutter 1.18.0-11.1.pre. I made a sample webview App which only shows a google page after launching.
The sample webview App will be frozen after launching.
pubspec.yaml
webview_flutter: ^0.3.22
flutter_inappwebview: ^4.0.0
The following two webviews are frozen after launching in release mode.
(flutter stable version 1.20.2 happens and doesn't happen with flutter 1.18.0-11.1.pre.)
WebView(initialUrl: 'https://www.google.com'),or
InAppWebView(initialUrl: 'https://www.google.com'),Steps to Reproduce
- Run the provided sample project https://github.com/crazyleaf9999/flutter_webview_test
(You have to fill your own team and bundle identifier in Xcode settings)
- Build the webview App in release mode.
(This issue only happens in release mode.) - Install the webview App on real iOS device.
- Open the App and the webview will be frozen after launching.
- If nothing happens, please kill the App.
- Repeat step 4 and 5 and it happens with high probability.
Expected results:
The webview is scrollable in release mode App.
Actual results:
The webview is frozen in release mode App.
Logs
Run your application with flutter run --verbose and attach all the
log output below between the lines with the backticks. If there is an
exception, please see if the error message includes enough information
to explain how to solve the issue.
I got an error:
body is too long (maximum is 65536 characters).
Please read the output of flutter run --verbose in:
https://github.com/crazyleaf9999/flutter_webview_test/blob/master/flutter_run_log
Run flutter analyze and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.
Analyzing flutter_1_2_0_with_webview...
info • The value of the field '_counter' isn't used • lib/main.dart:54:7 • unused_field
info • The declaration '_incrementCounter' isn't referenced • lib/main.dart:56:8 • unused_element
Finally, paste the output of running flutter doctor -v here.
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.5 19F101, locale zh-Hant-TW)
• Flutter version 1.20.2 at /Users/brianlin/Dev/flutter
• Framework revision bbfbf1770c (7 days ago), 2020-08-13 08:33:09 -0700
• Engine revision 9d5b21729f
• Dart version 2.9.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/brianlin/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode_11_6.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (2 available)
• Taiwan 的 iPhone (mobile) • b4bcaf1e0923c7b38acf316dac9c6bef2dd3a1e7 • ios • iOS 13.3
• iPhone SE (2nd generation) (mobile) • 0A3062A9-31F8-4EA5-975F-6FA6642F1D17 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6
(simulator)
