Skip to content

Add a note on working around a potential crash on iOS#13244

Open
sfshaza2 wants to merge 2 commits intomainfrom
fix-13243
Open

Add a note on working around a potential crash on iOS#13244
sfshaza2 wants to merge 2 commits intomainfrom
fix-13243

Conversation

@sfshaza2
Copy link
Copy Markdown
Contributor

@sfshaza2 sfshaza2 commented Apr 1, 2026

Fixes #13243

@sfshaza2 sfshaza2 requested a review from jmagman April 1, 2026 18:49
@sfshaza2 sfshaza2 requested a review from a team as a code owner April 1, 2026 18:49
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation notes to the platform channels guide, explaining how to handle the UISceneDelegate lifecycle in both Swift and Objective-C to prevent crashes when the window is nil. The review feedback suggests minor wording adjustments for consistency and formatting changes to improve readability by wrapping long lines.

@flutter-website-bot
Copy link
Copy Markdown
Collaborator

flutter-website-bot commented Apr 1, 2026

Visit the preview URL for this PR (updated for commit 8947780):

https://flutter-docs-prod--pr13244-fix-13243-l500u0wo.web.app

and set its call handler within your `SceneDelegate`'s
`scene:willConnectToSession:options:` method,
accessing the controller by using
`(FlutterViewController*)self.window.rootViewController`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is correct or not, I'll need to defer to @jmagman on this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @LouiseHsu messaged @sfshaza2 with some code samples.

@jmagman jmagman requested review from LouiseHsu and vashworth and removed request for jmagman April 2, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS version of Example crashes on iOS 26

4 participants