Skip to content

[UIScene][tool] Add SceneDelegate in iOS new project template #170293

Closed

Description

@hellohuanlin

Use case

Just like having a AppDelegate that subclass from FlutterAppDelegate, we should have a SceneDelegate that subclass from FlutterSceneDelegate in our new app template.

We could relay the message calls from scene delegate to app delegate, and ask developers to only use AppDelegate. However, we lose the scene info during the relay for multi-scene apps. For example, if we simply relay sceneDidEnterBackground to applicationDidEnterBackground, we lose the info about which scene enters the background.

Proposal

Add SceneDelegate to the new project template.

Activity

  1. added
    platform-iosiOS applications specifically
    team-iosOwned by iOS platform team
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jun 9, 2025
  2. importRyan commented on Jun 13, 2025

    @importRyan
    Contributor

    A reasonable default posture going forward on Apple platforms would be straight scene based, planning for multi-scene lifecycles even if the sample app has only one scene.

  3. changed the title [-]Add SceneDelegate in iOS new project template[/-] [+][UIScene][tool] Add SceneDelegate in iOS new project template[/+] on Aug 27, 2025
  4. self-assigned this
    on Oct 21, 2025
  5. github-actions commented on Dec 1, 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.

  6. locked as resolved and limited conversation to collaborators on Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listplatform-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