flutter / flutter/website

Creating iOS method channels changes after migrating to UIScene

Open
#13,086 0 comments 0 reactions 1 assignee Claimed by @sfshaza2 View on GitHub
dev.integration devos.macOS e1-hours from.page-issue p2-medium target.iOS
Dominant language
Dart
Stars
3.1k
Forks
3.5k
Avg merge
2d 2h
Merged PRs (30d)
96

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.