Skip to content

Creating iOS method channels changes after migrating to UIScene #13086

@vashworth

Description

@vashworth

Page URL

https://docs.flutter.dev/platform-integration/platform-channels#step-4-add-an-ios-platform-specific-implementation

Page source

No response

Describe the problem

UIScene was introduced in Flutter 3.38 behind a feature flag, but is now the default in Flutter 3.41. After migrating to UIScene, developers need to create method channels in their AppDelegate's didInitializeImplicitFlutterEngine instead of application:didFinishLaunchingWithOptions.

See step 2 in https://docs.flutter.dev/release/breaking-changes/uiscenedelegate#migrate-appdelegate

Expected fix

The docs should reflect the correct place to create method channels when using UIScene and potentially urge people to migrate to UIScene if they have not already

Additional context

No response

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev.integrationRelates to platform integrationdevos.macOSRelates to developing apps on macOS platforme1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp2-mediumNecessary but not urgent concern. Resolve when possible.target.iOSTarget apps on the iOS Platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions