From 7d1f2668444bf2c31d567d2cff6bdee005c03aa1 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Sun, 29 Mar 2026 22:35:00 -0700 Subject: [PATCH 1/2] fix(ios): scene notify first launch --- packages/core/application/application.ios.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/application/application.ios.ts b/packages/core/application/application.ios.ts index fca05bf8bf..fb976bc1b8 100644 --- a/packages/core/application/application.ios.ts +++ b/packages/core/application/application.ios.ts @@ -186,6 +186,8 @@ class SceneDelegate extends UIResponder implements UIWindowSceneDelegate { return; } + const isFirstScene = !Application.ios.getPrimaryScene() && !Application.hasLaunched(); + this._scene = scene; // Create window for this scene @@ -221,7 +223,7 @@ class SceneDelegate extends UIResponder implements UIWindowSceneDelegate { } // If this is the first scene, trigger app startup - if (!Application.ios.getPrimaryScene()) { + if (isFirstScene) { Application.ios._notifySceneAppStarted(); } } From cdcbcb395525c9e7f3d2ac03391b160db44b6c0f Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Mon, 30 Mar 2026 09:50:56 -0700 Subject: [PATCH 2/2] chore: ensure notify first before setting window content --- packages/core/application/application.ios.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/application/application.ios.ts b/packages/core/application/application.ios.ts index fb976bc1b8..0a581e5ffc 100644 --- a/packages/core/application/application.ios.ts +++ b/packages/core/application/application.ios.ts @@ -907,8 +907,11 @@ export class iOSApplication extends ApplicationCommon { setiOSWindow(window); } - // Set up the window content for the primary scene - this.setWindowContent(); + // During initial scene startup we must wait for launch to be notified first. + // Some frameworks provide root content from launch handlers. + if (this.hasLaunched()) { + this.setWindowContent(); + } } }