René's URL Explorer Experiment


Title: [Android] App with no main entry shows a blank screen when reopened right after Back · Issue #11631 · NativeScript/NativeScript · GitHub

Open Graph Title: [Android] App with no main entry shows a blank screen when reopened right after Back · Issue #11631 · NativeScript/NativeScript

X Title: [Android] App with no main entry shows a blank screen when reopened right after Back · Issue #11631 · NativeScript/NativeScript

Description: Issue Description Runtime bug on Android. An app that supplies its root view from the launch event, with no main entry, shows a blank screen when it is reopened right after the user leaves with Back. Android starts the new activity befor...

Open Graph Description: Issue Description Runtime bug on Android. An app that supplies its root view from the launch event, with no main entry, shows a blank screen when it is reopened right after the user leaves with Bac...

X Description: Issue Description Runtime bug on Android. An app that supplies its root view from the launch event, with no main entry, shows a blank screen when it is reopened right after the user leaves with Bac...

Opengraph URL: https://github.com/NativeScript/NativeScript/issues/11631

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Android] App with no main entry shows a blank screen when reopened right after Back","articleBody":"### Issue Description\n\nRuntime bug on Android. An app that supplies its root view from the `launch` event, with no main entry, shows a blank screen when it is reopened right after the user leaves with Back.\n\nAndroid starts the new activity before the old one is destroyed. `exit` has not fired yet, so `launch` does not fire for the new activity. With no main entry and no `launch`, nothing supplies a root view, and the new activity stays empty.\n\nThis is the shape Angular apps use by default, so it may explain blank screens I have seen in Angular apps. I have not confirmed that in a real Angular app.\n\nExpected behavior: the reopened app shows its page.\n\nRelated:\n\n- #11615 and #11624 cover the same timing for apps that reuse one root view. #11624 does not fix this case.\n- #11572 and #11573 cover a reopen after `exit` has fired. This case happens before `exit`.\n- Pressing Back on a window with no root view crashes with `TypeError: Cannot read properties of undefined (reading 'notify')` in `onBackPressed`. I reproduced that crash on a second activity started with `-f 0x08000000`.\n\n### Reproduction\n\nUse `apps/toolbox` from this repository and replace `src/main.ts`:\n\n```ts\nimport { Application, Frame } from '@nativescript/core';\n\nApplication.on(Application.launchEvent, (args: any) => {\n  const root = new Frame();\n  root.navigate({ moduleName: 'main-page' });\n  args.root = root;\n});\n\nApplication.run();\n```\n\n1. Build the app with `ns build android`, install it, and wait for the main page.\n2. Press Back and reopen at once:\n\n   ```shell\n   adb shell \"input keyevent KEYCODE_BACK; am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n org.nativescript.ToolBox/com.tns.NativeScriptActivity\"\n   ```\n\n3. The screen stays blank.\n\nThis gave a blank screen in 5 of 5 trials. The app stayed in focus and did not crash.\n\n### Relevant log output (if applicable)\n\nAndroid event log for one trial. The new activity is created and started before the old one stops:\n\n```shell\nwm_on_create_called:  [77903689, com.tns.NativeScriptActivity]\nwm_on_start_called:   [77903689, com.tns.NativeScriptActivity]\nwm_on_stop_called:    [253142999, com.tns.NativeScriptActivity]\nwm_on_destroy_called: [253142999, com.tns.NativeScriptActivity]\n```\n\n### Environment\n\n- `@nativescript/core`: built from `main` at `07e84ec58` (9.1.4-next.4)\n- `@nativescript/android`: 9.1.1\n- Device: Android emulator, API 36, x86_64\n- OS: Windows 11\n","author":{"url":"https://github.com/herefishyfish","@type":"Person","name":"herefishyfish"},"datePublished":"2026-11-10T03:57:44Z","url":"https://github.com/NativeScript/NativeScript/issues/11631"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4e8e1a1e-3e61-5fb7-e586-c8a7ff640d51
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBA2:A20F9:1613990:1D422DC:6B012FD9
html-safe-nonceb9e6c9ddb496085f0df3d6dd706480bfd37c33a845c51a3f9b1df51d21ffbcc2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkEyOkEyMEY5OjE2MTM5OTA6MUQ0MjJEQzo2QjAxMkZEOSIsInZpc2l0b3JfaWQiOiI1MDkyOTE0MDIwMjkwMjExODAxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac781b4320808b6038b50b5a3a29ff046a8572cc4610b2a27c3384a2e3bc30b150
hovercard-subject-tagissue:6299955091
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/11631/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ce5d1497a96b3ecd11c317f628cceb6b1002cfebba6264bc4b4126a4c4e65350/NativeScript/NativeScript/issues/11631
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ce5d1497a96b3ecd11c317f628cceb6b1002cfebba6264bc4b4126a4c4e65350/NativeScript/NativeScript/issues/11631
og:image:altIssue Description Runtime bug on Android. An app that supplies its root view from the launch event, with no main entry, shows a blank screen when it is reopened right after the user leaves with Bac...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameherefishyfish
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/issues/11631#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11631
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fissues%2F11631
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/issues/11631
Reloadhttps://github.com/NativeScript/NativeScript/issues/11631
Reloadhttps://github.com/NativeScript/NativeScript/issues/11631
NativeScripthttps://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Codehttps://github.com/NativeScript/NativeScript
Issues231 (231)https://github.com/NativeScript/NativeScript/issues
Pull requests107 (107)https://github.com/NativeScript/NativeScript/pulls
Discussionshttps://github.com/NativeScript/NativeScript/discussions
Actionshttps://github.com/NativeScript/NativeScript/actions
Projectshttps://github.com/NativeScript/NativeScript/projects
Wikihttps://github.com/NativeScript/NativeScript/wiki
Security and qualityhttps://github.com/NativeScript/NativeScript/security
Insightshttps://github.com/NativeScript/NativeScript/insights
https://github.com/NativeScript/NativeScript
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11631
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11631
[Android] App with no main entry shows a blank screen when reopened right after Backhttps://github.com/NativeScript/NativeScript/issues/11631#top
https://github.com/herefishyfish
herefishyfishhttps://github.com/herefishyfish
on Nov 10, 2026https://github.com/NativeScript/NativeScript/issues/11631#issue-6299955091
[Android] Blank screen when a new activity adopts a shared root view before the old one stops #11615https://github.com/NativeScript/NativeScript/issues/11615
fix(android): keep the root view when an activity replaces another #11624https://github.com/NativeScript/NativeScript/pull/11624
fix(android): keep the root view when an activity replaces another #11624https://github.com/NativeScript/NativeScript/pull/11624
[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) #11572https://github.com/NativeScript/NativeScript/issues/11572
fix(core): fire launch again for the first window after exit #11573https://github.com/NativeScript/NativeScript/pull/11573
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/NativeScript/issues/11631
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/NativeScript/issues/11631
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.