Skip to content

Creating iOS platform view changes after migrating to UIScene #13087

@vashworth

Description

@vashworth

Page URL

https://docs.flutter.dev/platform-integration/ios/platform-views#on-the-platform-side

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 platform views 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 platform views 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

Labels

devos.macOSRelates to developing apps on macOS platforme1-hoursEffort: < 8 hrsfrom.page-issueReported in a reader-filed concernp1-highMajor but not urgent concern: Resolve in months. Update each month.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