GeezerVison is showing github.com — fix(core): fire launch again for the first window after exit by anjak03 · Pull Request #11573 · NativeScript/NativeScript
Conversation
anjak03
commented
Oct 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
PR Checklist
What is the current behavior?
The legacy launch event fires only for the first window of the process, because _launchBridgeConsumed is set once and never reset. On Android 10 and 11, Back on the root activity finishes it and exit fires, but the process stays alive. When the user reopens the app, the new activity doesn't fire launch again. @nativescript/angular bootstraps only in its launch handler and tears the app down on exit, so the app stays unstyled and unresponsive until the process is killed. This worked in 9.0.x, where every new activity without saved state fired launch.
What is the new behavior?
ApplicationCommon re-arms the launch bridge when exit fires, so the first window after an exit fires launch again. Windows opened while the app is running still don't fire it, so multi-window behaviour is unchanged.
Added a unit test in window-content-resolver.spec.ts that fails without the fix. Also verified on a physical Android 11 device with an Angular app built against this branch: leaving with Back and reopening now bootstraps the app again.
Fixes #11572.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 5, 2026
This branch has not been deployed
No deployments
Reviewers
edusperoni
Awaiting requested review from edusperoni
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.