René's URL Explorer Experiment


Title: fix(android/application): open windows after the original activity finishes by rafaelaugustos · Pull Request #11552 · NativeScript/NativeScript · GitHub

Open Graph Title: fix(android/application): open windows after the original activity finishes by rafaelaugustos · Pull Request #11552 · NativeScript/NativeScript

X Title: fix(android/application): open windows after the original activity finishes by rafaelaugustos · Pull Request #11552 · NativeScript/NativeScript

Description: PR Checklist The PR title follows the commit guidelines. There is an issue for the bug: #11526. You have signed the CLA. All existing Core unit tests pass (544 passed, 1 skipped). Tests for the changes are included. What is the current behavior? After the original Android Activity finishes, startActivity can be cleared while a secondary NativeWindow remains usable. openWindow() then targets the hard-coded org.nativescript.NativeScriptActivity, which may not be declared in the manifest, and throws ActivityNotFoundException. What is the new behavior? Resolve the target from a live NativeScript Activity: the original Activity, the foreground Activity, or an attached surviving window. Exclude finishing/destroyed Activities, windows whose native surfaces are gone, and SDK Activities without the NativeScript marker. If none remains, use the application's configured launch component; report a clear error when it has no launch component instead of starting an undeclared class. The existing window flags and payload delivery are preserved. This changes Android target selection only; there is no public API change. Closes #11526. Validation Added 10 regression cases for surviving windows, original/foreground Activity selection, SDK Activities, finishing/destroyed Activities, detached surfaces, configured launch components and the missing-launcher error. Against the original implementation, 9 of these cases fail. npx nx run core:test: 544 passed, 1 skipped, across 42 test files. npx nx run core:build: passed, before and after the fix. npx nx format:write --files=packages/core/application/application.android.ts,packages/core/application/open-window.android.spec.ts,packages/core/vitest.setup.ts: passed. Android 16 / API 36 arm64 emulator, NativeScript Android runtime 9.1.1, Core built from 3224f1b, com.tns.NativeScriptActivity, launchMode="standard": reproduced using an isolated native app with a window content resolver, without the router. The native app opens a second window, finishes the original Activity, then requests another window from the survivor after activityDestroyed: Before the final open request (both builds): startActivity=false, foregroundActivity=true, windows=1 Original Core: ActivityNotFoundException: {org.nativescript.openwindow11526/org.nativescript.NativeScriptActivity} Patched Core: {"ok":true,"windows":2,"originalDestroyed":true, "payload":"after-primary-finished","flags":403177472} The complete native automated app suite and an iOS simulator run were not executed locally. The native before/after check above and the full Core unit suite were executed.

Open Graph Description: PR Checklist The PR title follows the commit guidelines. There is an issue for the bug: #11526. You have signed the CLA. All existing Core unit tests pass (544 passed, 1 skipped). Tests for t...

X Description: PR Checklist The PR title follows the commit guidelines. There is an issue for the bug: #11526. You have signed the CLA. All existing Core unit tests pass (544 passed, 1 skipped). Tests for t...

Opengraph URL: https://github.com/NativeScript/NativeScript/pull/11552

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:51bd1cc8-0b05-729a-68c6-62d458a29be0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE15E:20AA01:1AD73F3:2219BEE:6B013A43
html-safe-nonceaaa3660329c235a2a153a3926ab38c5cbc7d5ce5afb14fc37ee3c5abadf99330
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTVFOjIwQUEwMToxQUQ3M0YzOjIyMTlCRUU6NkIwMTNBNDMiLCJ2aXNpdG9yX2lkIjoiNDkwODk2NTIwOTU2NzIxNDE0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac32be904e5e57a383beafcfd5b6b1079583ce8b7b50782c9ee1da55f6f498dc06
hovercard-subject-tagpull_request:4915235234
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/NativeScript/pull/11552/files
twitter:imagehttps://avatars.githubusercontent.com/u/5261655?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5261655?s=400&v=4
og:image:altPR Checklist The PR title follows the commit guidelines. There is an issue for the bug: #11526. You have signed the CLA. All existing Core unit tests pass (544 passed, 1 skipped). Tests for t...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/NativeScript/NativeScript/pull/11552/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11552%2Ffiles
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%2Fpull%2F11552%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/pull/11552/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11552/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11552/files
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
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
NativeScript:mainhttps://github.com/NativeScript/NativeScript/tree/main
rafaelaugustos:fix/android-open-window-activityhttps://github.com/rafaelaugustos/NativeScript/tree/fix/android-open-window-activity
Conversation 2 https://github.com/NativeScript/NativeScript/pull/11552
Commits 5 https://github.com/NativeScript/NativeScript/pull/11552/commits
Checks 6 https://github.com/NativeScript/NativeScript/pull/11552/checks
Files changed https://github.com/NativeScript/NativeScript/pull/11552/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11552/files
fix(android/application): open windows after the original activity finishes https://github.com/NativeScript/NativeScript/pull/11552/files#top
Show all changes 5 commits https://github.com/NativeScript/NativeScript/pull/11552/files
ad2e1e0 fix(android/application): resolve openWindow targets from surviving a… rafaelaugustos Oct 19, 2026 https://github.com/NativeScript/NativeScript/pull/11552/commits/ad2e1e0d54d6d983b179d0458b2b369284438435
bac68f9 Merge branch 'main' into fix/android-open-window-activity rafaelaugustos Oct 25, 2026 https://github.com/NativeScript/NativeScript/pull/11552/commits/bac68f98cc8652b6a2d4b767a662e325f67e6ef5
567eb4a Merge branch 'main' into fix/android-open-window-activity rafaelaugustos Oct 31, 2026 https://github.com/NativeScript/NativeScript/pull/11552/commits/567eb4a5d3fec758fac9a0eb21d49a4ab704779f
c7d321d Merge branch 'main' into fix/android-open-window-activity rafaelaugustos Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11552/commits/c7d321d7d0ee7e4abc18b6e6ee15de301aac5f14
a66e550 refactor(android/application): split openWindow activity selection fo… NathanWalker Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11552/commits/a66e550eba258a65e240febb4bb99da0970cbb8a
Clear filters https://github.com/NativeScript/NativeScript/pull/11552/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11552/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11552/files
application.android.ts https://github.com/NativeScript/NativeScript/pull/11552/files#diff-c6f1113099638c725b210eda5d070aabe060961bba5b848012f3b6b208c75a88
open-window.android.spec.ts https://github.com/NativeScript/NativeScript/pull/11552/files#diff-61f98759975b8bf1ad92c4fbcf1158b62980494d59537cb89a3bfd9ddc5eccfe
vitest.setup.ts https://github.com/NativeScript/NativeScript/pull/11552/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
packages/core/application/application.android.tshttps://github.com/NativeScript/NativeScript/pull/11552/files#diff-c6f1113099638c725b210eda5d070aabe060961bba5b848012f3b6b208c75a88
View file https://github.com/rafaelaugustos/NativeScript/blob/a66e550eba258a65e240febb4bb99da0970cbb8a/packages/core/application/application.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11552/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11552/files#diff-c6f1113099638c725b210eda5d070aabe060961bba5b848012f3b6b208c75a88
https://github.com/NativeScript/NativeScript/pull/11552/files#diff-c6f1113099638c725b210eda5d070aabe060961bba5b848012f3b6b208c75a88
packages/core/application/open-window.android.spec.tshttps://github.com/NativeScript/NativeScript/pull/11552/files#diff-61f98759975b8bf1ad92c4fbcf1158b62980494d59537cb89a3bfd9ddc5eccfe
View file https://github.com/rafaelaugustos/NativeScript/blob/a66e550eba258a65e240febb4bb99da0970cbb8a/packages/core/application/open-window.android.spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11552/{{ revealButtonHref }}
packages/core/vitest.setup.tshttps://github.com/NativeScript/NativeScript/pull/11552/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
View file https://github.com/rafaelaugustos/NativeScript/blob/a66e550eba258a65e240febb4bb99da0970cbb8a/packages/core/vitest.setup.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11552/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11552/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
https://github.com/NativeScript/NativeScript/pull/11552/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11552/files
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.