[BUG] Flutter Module crashing when going to native / entering the module again
josipk-cinnamon opened this issue · 3 comments
Describe the bug
I'm creating a Flutter Module that is triggered while pressing the FAB inside the native Android app.
Using Alice in the Module in order to track API calls I make there.
Everything works as intended, but if I go back to native app using the back button and then go to the Module again by tapping on the FAB, the module crashes.
Disabling Alice completely (even from pubspec.yaml) fixes the issue.
To Reproduce
Steps to reproduce the behavior:
- Open the Flutter Module from the native app
- Tap the back button and get back to the native app
- Open the Module again
- Module crashes and brings you to the native app
Expected behavior
Exiting and entering the Module shouldn't crash it.
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale
en-HR)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)
Alice version
- Version: 0.2.4
Smartphone (please complete the following information):
- Device: Pixel 3a
- OS: Android 11
I can confirm this issue, and it makes it impossible to include Alice in any project that is integrated into an existing Android app as you can only ever open a Flutter screen once without crashing the entire app. Any advice on solving this asap would be great. Thanks
Thanks for reporting this issue. Can you provide minimal reproducible example for this issue? This will help debug this issue on my side.
Hey, after investigating a bit more thoroughly, I came to the conclusion that using FlutterBoost is what caused the issue.
Removed it and all was working without issues.
I apologize for taking this long to update here, but I think this issue can be resolved.