So i had my APK installed both on debug and release,
everything works just fine with account_picker and webview_flutter in debug mode.
But when I'm using both package in release mode, suddenly JavascriptChannel on webview cannot be trigger (it happen only in release mode).
I've updated both of the package in latest version, here's my flutter doctor:
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.2.3 20D91 darwin-arm, locale en-ID)
• Flutter version 2.5.2 at /Users/lintangkusuma/flutter/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 3595343e20 (8 days ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/lintangkusuma/Library/Android/sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] VS Code (version 1.58.0-insider)
• VS Code at /Users/lintangkusuma/Downloads/Visual Studio Code - Insiders.app/Contents
• Flutter extension version 3.25.0
So i had my APK installed both on debug and release,
everything works just fine with account_picker and webview_flutter in debug mode.
But when I'm using both package in release mode, suddenly
JavascriptChannel
on webview cannot be trigger (it happen only in release mode).I've updated both of the package in latest version, here's my flutter doctor:
[✓] Flutter (Channel stable, 2.5.2, on macOS 11.2.3 20D91 darwin-arm, locale en-ID) • Flutter version 2.5.2 at /Users/lintangkusuma/flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 3595343e20 (8 days ago), 2021-09-30 12:58:18 -0700 • Engine revision 6ac856380f • Dart version 2.14.3
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/lintangkusuma/Library/Android/sdk • Platform android-31, build-tools 30.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 12.5.1, Build version 12E507 • CocoaPods version 1.10.1
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] VS Code (version 1.58.0-insider) • VS Code at /Users/lintangkusuma/Downloads/Visual Studio Code - Insiders.app/Contents • Flutter extension version 3.25.0
[✓] Connected device (1 available) • Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.71
Thank you in advance