René's URL Explorer Experiment


Title: fix(android): resume Frame navigation after early Activity attachment by NathanWalker · Pull Request #11640 · NativeScript/NativeScript · GitHub

Open Graph Title: fix(android): resume Frame navigation after early Activity attachment by NathanWalker · Pull Request #11640 · NativeScript/NativeScript

X Title: fix(android): resume Frame navigation after early Activity attachment by NathanWalker · Pull Request #11640 · NativeScript/NativeScript

Description: PR Checklist The PR title follows our guidelines. Split out of #11558 so the fix can land independently of the experimental back-preview API. CLA signed by the original author (@rafaelaugustos). All existing tests are passing. Tests for the changes are included. What is the current behavior? When an Activity is recreated (Activity.recreate(), configuration change without configChanges), the new root view can attach the Frame's native view while the owning Activity is still INITIALIZED. Frame._onAttachedToWindow() declines that attach because of its lifecycle guard, no second attach arrives after CREATED, and the Frame never marks itself attached. Queued navigation, including Back, then stalls. The lifecycle guard also read getCurrentActivity(), which in multi-window apps can belong to a different window than the Frame's own. What is the new behavior? The lifecycle guard checks the Frame's owning Activity (frame.android.activity). Frame.onLoaded() rechecks a native view that is already attached but was never marked attached, so the navigation queue resumes once the Activity is ready. The existing lifecycle guard still applies. The fix commit is @rafaelaugustos's original from #11558, unchanged. The automated test is rewritten to use TKUnit's done callback: as an async function it was reported as passing before the recreation finished, and its assertion then failed outside the test while other FRAME tests were running.

Open Graph Description: PR Checklist The PR title follows our guidelines. Split out of #11558 so the fix can land independently of the experimental back-preview API. CLA signed by the original author (@rafaelaugustos)...

X Description: PR Checklist The PR title follows our guidelines. Split out of #11558 so the fix can land independently of the experimental back-preview API. CLA signed by the original author (@rafaelaugustos)...

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

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:e90a14bc-5a61-dca9-b5a3-4aac09badafc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8DBA:1EC9BC:157B010:1B62BE7:6B013353
html-safe-nonce325bb393158bb91af4c9767ac41c2f71d86e7ea96ba545d67ec379a1e013ba27
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4REJBOjFFQzlCQzoxNTdCMDEwOjFCNjJCRTc6NkIwMTMzNTMiLCJ2aXNpdG9yX2lkIjoiNDY2Nzk3OTM4MjQ1NDQ4NTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb4d8d40ba871d67d20ee5e8589b95a1d0254792c59da82a28cf132a56b5327fe
hovercard-subject-tagpull_request:5287284722
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/11640/files
twitter:imagehttps://avatars.githubusercontent.com/u/457187?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/457187?s=400&v=4
og:image:altPR Checklist The PR title follows our guidelines. Split out of #11558 so the fix can land independently of the experimental back-preview API. CLA signed by the original author (@rafaelaugustos)...
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/11640/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11640%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%2F11640%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/11640/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11640/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11640/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
mainhttps://github.com/NativeScript/NativeScript/tree/main
fix/android-frame-recreation-navigationhttps://github.com/NativeScript/NativeScript/tree/fix/android-frame-recreation-navigation
Conversation 3 https://github.com/NativeScript/NativeScript/pull/11640
Commits 2 https://github.com/NativeScript/NativeScript/pull/11640/commits
Checks 9 https://github.com/NativeScript/NativeScript/pull/11640/checks
Files changed https://github.com/NativeScript/NativeScript/pull/11640/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11640/files
fix(android): resume Frame navigation after early Activity attachment https://github.com/NativeScript/NativeScript/pull/11640/files#top
Show all changes 2 commits https://github.com/NativeScript/NativeScript/pull/11640/files
025d4df fix(android): resume Frame navigation after early Activity attachment rafaelaugustos Oct 20, 2026 https://github.com/NativeScript/NativeScript/pull/11640/commits/025d4dfb6684142572955faeecfe8b3a78cfcd4a
4639c99 test(android): wait for Activity recreation before asserting Frame Back NathanWalker Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11640/commits/4639c9944eba530a38bf43e7e8e7fc8140fb8403
Clear filters https://github.com/NativeScript/NativeScript/pull/11640/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11640/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11640/files
test-runner.ts https://github.com/NativeScript/NativeScript/pull/11640/files#diff-c171715afa3cc0f2ff70d4ffd0f816d1ad67cf7c22ffe91a7456889e31c24de5
frame-tests.android.ts https://github.com/NativeScript/NativeScript/pull/11640/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
index.android.ts https://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
apps/automated/src/test-runner.tshttps://github.com/NativeScript/NativeScript/pull/11640/files#diff-c171715afa3cc0f2ff70d4ffd0f816d1ad67cf7c22ffe91a7456889e31c24de5
View file https://github.com/NativeScript/NativeScript/blob/4639c9944eba530a38bf43e7e8e7fc8140fb8403/apps/automated/src/test-runner.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11640/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-c171715afa3cc0f2ff70d4ffd0f816d1ad67cf7c22ffe91a7456889e31c24de5
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-c171715afa3cc0f2ff70d4ffd0f816d1ad67cf7c22ffe91a7456889e31c24de5
apps/automated/src/ui/frame/frame-tests.android.tshttps://github.com/NativeScript/NativeScript/pull/11640/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
View file https://github.com/NativeScript/NativeScript/blob/4639c9944eba530a38bf43e7e8e7fc8140fb8403/apps/automated/src/ui/frame/frame-tests.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11640/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
packages/core/ui/frame/index.android.tshttps://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
View file https://github.com/NativeScript/NativeScript/blob/4639c9944eba530a38bf43e7e8e7fc8140fb8403/packages/core/ui/frame/index.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11640/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
https://github.com/NativeScript/NativeScript/pull/11640/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11640/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.