Skip to content

[quick_actions_ios] Needs to adopt UIScene lifecycle #170179

Closed
flutter/packages
#11047

Description

@vashworth

After adopting UIScene lifecycle in Flutter apps, quick_actions is running into errors:

This is most likely due to it relying on application lifecycle events, which are no longer called.

For example,

  public func application(
    _ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem,
    completionHandler: @escaping (Bool) -> Void
  ) -> Bool {
    handleShortcut(shortcutItem.type)
    return true
  }

https://github.com/flutter/packages/blob/c3c4c5a01ab077990b0aae509090d987a660b88e/packages/quick_actions/quick_actions_ios/ios/quick_actions_ios/Sources/quick_actions_ios/QuickActionsPlugin.swift#L39-L45

Apple's docs state

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

https://developer.apple.com/documentation/uikit/uiapplicationdelegate/application(_:performactionfor:completionhandler:)

Test failures:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8712791415816897953/+/u/Run_package_tests/native_test/stdout

This may be blocked by: #130445

Activity

  1. vashworth commented on Jun 6, 2025

    @vashworth
    ContributorAuthor

    This is probably what's causing #169928

  2. added
    platform-iosiOS applications specifically
    a: pluginsSupport for writing, building, and running plugin packages
    fyi-ecosystemFor the attention of Ecosystem team
    team-iosOwned by iOS platform team
    on Jun 6, 2025
  3. stuartmorgan-g commented on Jun 10, 2025

    @stuartmorgan-g
    Contributor

    This may be blocked by: #130445

    From initial skimming of the docs, it looks like UISceneDelegate is a singleton (rather than something arbitrary objects can subscribe to), in which case this would definitely be blocked by building a multiplexing API at the plugin layer. I may have missed alternate non-singleton APIs though.

  4. added
    P1High-priority issues at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Jun 12, 2025
  5. flutter-triage-bot commented on Oct 17, 2025

    @flutter-triage-bot

    This issue is marked P1 but has had no recent status updates.

    The P1 label indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub.

    Please consider where this bug really falls in our current priorities, and label it or assign it accordingly. This allows people to have a clearer picture of what work is actually planned. Thanks!

  6. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    and removed
    P1High-priority issues at the top of the work list
    on Oct 23, 2025
  7. itaishalom commented on Feb 2, 2026

    @itaishalom
  8. itaishalom commented on Feb 3, 2026

    @itaishalom

    On our app we are using class SceneDelegate: UIResponder and extension SceneDelegate: UIWindowSceneDelegate .
    As far as I understand, quick_action do not work on this setup.
    Can someone share the right solution for this use case?

  9. SrAdam commented on Feb 3, 2026

    @SrAdam
  10. SrAdam commented on Feb 9, 2026

    @SrAdam

    Based on my understanding all prerequisites have been done, so this issue could finally be fixed.

    Please see this PR: #175866

  11. self-assigned this
    on Feb 17, 2026
  12. github-actions commented on Apr 10, 2026

    @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.

  13. locked as resolved and limited conversation to collaborators on Apr 10, 2026
  14. added a commit that references this issue on Jun 10, 2026
    55f6e68
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 lista: pluginsSupport for writing, building, and running plugin packagesp: quick_actionsQuickActions pluginplatform-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