Closed furiousdazzewizard closed 1 month ago
after a couple of time to cater with this issue, I just get a workaround to solve this,
when building a release build of apk, pass also the --no-shrink
to flutter build
flutter build apk --no-shrink
I got the following debug lot when enabled the debug log option in WebView, and it is only happened in release build but not debug build.
02-24 16:34:50.051 13671 13671 D Options : No field useShouldOverrideUrlLoading in class Lcom/pichillilorenzo/flutter_inappwebview/InAppWebView/G; (declaration of 'com.pichillilorenzo.flutter_inappwebview.InAppWebView.G' appears in base.apk) 02-24 16:34:50.051 13671 13671 D Options : No field initialScale in class Lcom/pichillilorenzo/flutter_inappwebview/InAppWebView/G; (declaration of 'com.pichillilorenzo.flutter_inappwebview.InAppWebView.G' appears in base.apk)
hope it may help you
I just use AndroidInAppWebViewOptions : databaseEnabled: true, domStorageEnabled: true,
Successfully run in debug mode,but fail in flutter build apk --target-platform android-arm,android-arm64 --split-per-abi
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Environment
Flutter version: v1.12.13+hotfix.7, on Microsoft Windows [Version 10.0.17763.973] Plugin version: Flutter plugin version 43.0.1 on Android Studio 3.5 Android version: Android 9 (API 28) iOS version: N/A Xcode version: N/A Device information: SM J400M • 42006eb568b2a543 • android-arm • Android 9 (API 28)
Description
The above mentioned android specific options work fine on the debug version of the app. On the release version, however, neither of those options work (seems to be unavailable).
Expected behavior: For example, the web page should be displayed in overview mode, with a desktop-like view.
Current behavior: the web page is displayed in its original size, bigger than the screen size of the webview.. In addition, zoom support is not available so it is not possible to fit size.
Steps to reproduce