Closed
Description
Use case
I have run into this issue without cleanup the listeners when the engine is dead, so it causes the crash. As I single FlutterEngine APP, the detachFromEngineForRegistrar
is only called when the APP is exited. It's not easy to test this case in the integration test, although I can simulate the detached logic of the Flutter Plugin through the Add2App scenario, there's a lot of work to achieve this, and the Add2App feature is not support the desktop, and web yet.
So, is there any easy way to simulate the Plugin detach logic?