Skip to content

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

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?

Activity

  1. maheshj01 commented on Jul 26, 2022

    @maheshj01
    Member

    Hi @littleGnAl, Thanks for filing the issue. I am labeling this issue for further insights from the team.

    cc: @cbracken

  2. added
    engineflutter/engine related. See also e: labels.
    a: existing-appsIntegration with existing apps via the add-to-app flow
    and removed
    in triagePresently being triaged by the triage team
    on Jul 26, 2022
  3. chinmaygarde commented on Aug 1, 2022

    @chinmaygarde
    Contributor

    So, is there any easy way to simulate the Plugin detach logic?

    Can you redirect questions to the Discord or StackOverflow channels please? Closing this as it isn't clear if there is an bug here.

  4. github-actions commented on Aug 16, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: existing-appsIntegration with existing apps via the add-to-app flowengineflutter/engine related. 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