Skip to content

Is there any easy way to simulate the detach logic of the Flutter Plugin in test? #108293

Closed
@littleGnAl

Description

@littleGnAl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowengineflutter/engine repository. See also e: labels.r: invalidIssue is closed as not valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions