Skip to content

.NET 11 RC2 docs: Apple scene lifecycle and app actions - #3568

Merged
jfversluis merged 1 commit into
dotnet:mainfrom
davidortinau:davidortinau-rc2-apple-lifecycle-docs
Oct 13, 2026
Merged

jfversluis merged 1 commit into
dotnet:mainfrom
davidortinau:davidortinau-rc2-apple-lifecycle-docs

Conversation

@davidortinau

@davidortinau davidortinau commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Document the Apple scene lifecycle migration for existing .NET MAUI apps built with the Xcode 27 SDKs. Keep new guidance within >=net-maui-11.0 blocks and preserve the .NET 8, 9, and 10 content and existing lifecycle callback descriptions.

  • Add the complete UIApplicationSceneManifest, a matching registered MauiUISceneDelegate subclass, the exact __MAUI_DEFAULT_SCENE_CONFIGURATION__ name, and an explicit single-scene default.
  • Explain migration from application callbacks to scene callbacks, warm URL and user-activity delivery, and cold scene connection-options limitations.
  • Explain framework-provided warm and cold AppActions dispatch. Each custom PerformActionForShortcutItem lifecycle registration must acknowledge its own callback exactly once, including false for observers that do not handle the action.
  • Keep the templates' automatic forwarding. No redundant manual AppActions forwarding or sample changes are added.

Changed files

  • docs/fundamentals/app-lifecycle.md
  • docs/platform-integration/appmodel/app-actions.md

Both pages have current ms.date values and ai-usage: ai-assisted metadata.

Platform behavior and migration

The guidance applies to iOS and Mac Catalyst, including apps with multiple scenes disabled. The scene callback registrations run alongside the cross-platform Window lifecycle forwarding provided by MAUI. Cold URL contexts and user activities are not automatically replayed through the warm callbacks. The WebAuthenticator bridge is not general app-link navigation.

MAUI dispatches a cold shortcut after that window's scene activation callbacks, at most once per connection. Custom shortcut observers must acknowledge false; returning alone is not an acknowledgement. Cold scene connections do not supply a native completion callback.

Source verification

Release authority: dotnet/core#10609, RC2 release notes at a26e2ef9efeab9c78e571b9c13ad9779130cb0b8.

Upstream change: dotnet/maui#38601. Facts and example shapes were checked against the actual template/runtime source at RC2 cutoff d32b79928709cf53b671336dabd0caef5a679fc2 (published workload 11.0.0-rc.2.26505.5), not only the PR description:

Local checks

  • Repository Markdown lint: zero issues for both changed pages.
  • Staged whitespace check and direct staged review: no blocking findings.
  • Version-selection checks: .NET 8, 9, and 10 article bodies remain unchanged; .NET 11 guidance is visible.
  • Relative links, anchors, metadata, code fences, and lifecycle method shapes checked.
  • The XML example matches both RC2 template manifests, with matching scene delegate registration.

No native app execution or C# compilation was performed. The full hosted Learn/OPS build and documentation verifier run after publication.


Internal previews

File Preview link
docs/fundamentals/app-lifecycle.md Learn preview
docs/platform-integration/appmodel/app-actions.md Learn preview

Build report

…dispatch

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 6aa5f4ab-f511-460f-88a2-bb881215e380
Copilot AI balanced review requested due to automatic review settings October 8, 2026 21:44
@davidortinau
davidortinau requested a review from a team as a code owner October 8, 2026 21:44
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 75426a0:

✅ Validation status: passed

File Status Preview URL Details
docs/fundamentals/app-lifecycle.md ✅Succeeded View (>=net-maui-8.0)
docs/platform-integration/appmodel/app-actions.md ✅Succeeded View (>=net-maui-8.0)

For more details, please refer to the build report.

Copilot AI left a comment

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.

🟡 Changes recommended

The lifecycle mapping incorrectly describes SceneWillConnect as occurring after native window creation.

1 open finding
What changed in this PR

Documents .NET 11 Apple scene lifecycle migration and AppActions dispatch behavior.

Changes:

  • Adds scene lifecycle setup and migration guidance.
  • Documents warm/cold activation and AppActions handling.
  • Adds .NET 11 monikered content and metadata.
File Description
docs/​fundamentals/​app-lifecycle.md Adds scene lifecycle configuration and migration guidance.
docs/​platform-integration/​appmodel/​app-actions.md Documents scene-based AppActions dispatch and acknowledgements.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/fundamentals/app-lifecycle.md Resolved
@jfversluis
jfversluis merged commit d0b1bbc into dotnet:main Oct 13, 2026
8 checks passed
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.

3 participants