Android project withCachedEngine will crash #238
Labels
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
status: investigating
The issue is under investigation, which is determined to be non-trivial.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Steps to reproduce
I Using Flutter as a module dependency in native projects, where the native project utilizes engine cache to improve initial Flutter launch speed
Code example
Stack trace
I think the reason is that when pre-loading the engine, it also pre-loads the Flutter view (which executes related channel methods). At this point, FlutterActivity hasn't been opened yet (on the native side, injection happens only when FlutterActivity is loaded), therefore it reports 'Unable to establish connection on channel'. How should I handle this? In my project, I want to use engine pre-loading to optimize the launch @speed.
Thanks!
The text was updated successfully, but these errors were encountered: