GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@anjak03 anjak03 commented Oct 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

PR Checklist

  • The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#commit-messages.
  • There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
  • You have signed the CLA.
  • All existing tests are passing: https://github.com/NativeScript/NativeScript/blob/master/tools/notes/DevelopmentWorkflow.md#running-unit-tests-application.
  • Tests for the changes are included - https://github.com/NativeScript/NativeScript/blob/master/tools/notes/WritingUnitTests.md.

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.

All reactions
@anjakuzevska
fix(core): fire launch again for the first window after exit
a6554e5
@anjak03
anjak03 force-pushed the fix/android-launch-after-exit branch from 6df8b40 to a6554e5 Compare October 26, 2026 18:01
This was referenced Nov 5, 2026
[Android] Blank screen when a new activity adopts a shared root view before the old one stops #11615
Open
fix(android): keep the root view when an activity replaces another #11624
Open
[Android] App with no main entry shows a blank screen when reopened right after Back #11631
Open
@NathanWalker
NathanWalker requested a review from edusperoni November 11, 2026 23:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@edusperoni edusperoni Awaiting requested review from edusperoni

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Android] After exiting with Back, reopening the app in the same process never fires launch again (9.1 regression, Angular apps stay dead and unstyled)

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@anjak03 @anjakuzevska
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.