Skip to content

Enable Scene Life Cycle Delegate for plugins #130445

Closed

Description

@cyanglaz

Flutter plugin currently only support adding ApplicationLifeCycleDelegates: https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/framework/Headers/FlutterPlugin.h#L440

App delegates are not available in app extensions. We need to add scene delegate support for app extensions to use those plugins.

One solution is to add a new method called addSceneLifeCycleDelegate and handle it in a similar way to the current addApplicationLifeCycleDelegate.

Activity

  1. added
    platform-iosiOS applications specifically
    engineflutter/engine related. See also e: labels.
    team-iosOwned by iOS platform team
    triaged-iosTriaged by iOS platform team
    P2Important issues not at the top of the work list
    on Jul 12, 2023
  2. jmagman commented on Jun 6, 2025

    @jmagman
    Member

    We will also need to implement a UIWindowSceneDelegate to replace application:performActionForShortcutItem:completionHandler:

    Important

    This method is not called for scene-based apps. If you have a scene-based app, implement windowScene:performActionForShortcutItem:completionHandler: in your scene delegate instead."

  3. vashworth commented on Aug 27, 2025

    @vashworth
    Contributor

    Closing in favor of #174398.

  4. github-actions commented on Sep 10, 2025

    @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 Sep 10, 2025
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

    P2Important issues not at the top of the work listengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions