René's URL Explorer Experiment


Title: feat(android): prototype Frame-owned interactive back previews by rafaelaugustos · Pull Request #11558 · NativeScript/NativeScript · GitHub

Open Graph Title: feat(android): prototype Frame-owned interactive back previews by rafaelaugustos · Pull Request #11558 · NativeScript/NativeScript

X Title: feat(android): prototype Frame-owned interactive back previews by rafaelaugustos · Pull Request #11558 · NativeScript/NativeScript

Description: PR Checklist Conventional PR title. Proposal tracked in #11557; public API is experimental and offered for review. CLA signed. Core unit tests pass: 540 passed, one existing skip; Core build passes. Tests included: unit session lifetime tests, native Frame ownership/recreation tests and a standalone toolbox example. What is the current behavior? Frame exposes final Back but no presentation-only interactive preview. External routers currently reparent a retained Page during Android back progress. Frame's logical history is separate from FragmentManager's back stack, so enabling FragmentManager predictive pop is not a compatible one-line change. Native acceptance also exposed a pre-existing recreation failure: the new root view can attach while its owning Activity is INITIALIZED. Frame ignores that attach, never marks itself attached after CREATED, and subsequent navigation remains queued. A plain NativeScript reproduction fails with published Core 9.1.3 on API 35. What is the new behavior? Experimental Frame.beginBackPreview() creates a version-1 snapshot session on Android 14+. Progress/cancel/finish only change presentation; the caller retains gesture dispatch, guards and the final navigation decision. Frame automatically disposes the session when navigation, unload, detach or native disposal takes over. iOS returns undefined. The previous Page is software-drawn into a bounded, accessibility-hidden Android ImageView and stays detached/unloaded. Secure windows, SurfaceView/TextureView content, custom/shared transitions, unavailable geometry and failed capture decline the session. This is intentionally opt-in: capture costs time and memory, previews are static, and no performance improvement or universal content compatibility is claimed. The first commit independently fixes early attachment by using the owning Activity and rechecking an already-attached native view when the Frame loads. It is separable from the prototype. Implements the prototype proposed in #11557. Related consumer investigation: rafaelaugustos/vue-router-ns#62. Native validation Candidate built from upstream main 3224f1b, with stock Android runtime 9.1.1 / native Core resources; the demo aliases this compiled Core rather than modifying installed packages. API 34/35/36 ARM64 emulators passed: Real Android system gestures for cancellation and completion; previous Page remains detached in the candidate, and FragmentManager back-stack count remains zero. Global guard refusal, active leave-guard suppression, custom-transition fallback, modal inner Back/results, replace/clearHistory, and interruption by a new navigation. Eight repeated snapshot cycles; all tracked Android Bitmaps collected through native WeakReference/ReferenceQueue after three fixed JS/native GC rounds. Actual same-process Activity.recreate() with both legacy and candidate previews: old session disposed, Page identities/draft retained, and Back works after recreation. The unmodified published Core negative control reproduces the queued-Back failure on API 35. The router fixture records lifecycle traces, capture allocation/time, screenshots during native input, and process/Activity identities. The full automated Core device app was not run as a whole; the standalone native reproduction exercised the added regression behavior directly. Physical-device performance, arbitrary vendor SDK rendering, and TalkBack speech are not claimed. See tools/notes/FrameBackPreview.md for the API, native example and limitations. The consumer continues shipping its existing preview by default.

Open Graph Description: PR Checklist Conventional PR title. Proposal tracked in #11557; public API is experimental and offered for review. CLA signed. Core unit tests pass: 540 passed, one existing skip; Core build p...

X Description: PR Checklist Conventional PR title. Proposal tracked in #11557; public API is experimental and offered for review. CLA signed. Core unit tests pass: 540 passed, one existing skip; Core build p...

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

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:fb6d6958-f63f-fb2f-0332-debc25f406b5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE856:1148D3:14CFCC5:1A98B7F:6B01303F
html-safe-nonce0f3d5dd78c4235de3741b13077564310bde4004ebd4fc55bfb1f47df65e55aed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODU2OjExNDhEMzoxNENGQ0M1OjFBOThCN0Y6NkIwMTMwM0YiLCJ2aXNpdG9yX2lkIjoiMTQ0NzA2MDQ0MjI3MDM5Mjk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac22f9b8af462db0f52a11f58c17d2e9d214afdeebf7bb5322f8742674bc8b2695
hovercard-subject-tagpull_request:4942390666
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/11558/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 Conventional PR title. Proposal tracked in #11557; public API is experimental and offered for review. CLA signed. Core unit tests pass: 540 passed, one existing skip; Core build p...
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/11558/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11558%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%2F11558%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/11558/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11558/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11558/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
rafaelaugustoshttps://github.com/rafaelaugustos
NativeScript:mainhttps://github.com/NativeScript/NativeScript/tree/main
rafaelaugustos:feat/android-frame-back-previewhttps://github.com/rafaelaugustos/NativeScript/tree/feat/android-frame-back-preview
Conversation 3 https://github.com/NativeScript/NativeScript/pull/11558
Commits 5 https://github.com/NativeScript/NativeScript/pull/11558/commits
Checks 6 https://github.com/NativeScript/NativeScript/pull/11558/checks
Files changed https://github.com/NativeScript/NativeScript/pull/11558/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11558/files
feat(android): prototype Frame-owned interactive back previews https://github.com/NativeScript/NativeScript/pull/11558/files#top
Show all changes 5 commits https://github.com/NativeScript/NativeScript/pull/11558/files
b27f2eb fix(android): resume Frame navigation after early Activity attachment rafaelaugustos Oct 20, 2026 https://github.com/NativeScript/NativeScript/pull/11558/commits/b27f2eb86e9b2ac6856bc7d5d47c57700c1acf95
fadb58f feat(android): prototype Frame-owned interactive back previews rafaelaugustos Oct 20, 2026 https://github.com/NativeScript/NativeScript/pull/11558/commits/fadb58f034e403933028f86746280375ea9811ff
00f367f Merge branch 'main' into feat/android-frame-back-preview rafaelaugustos Oct 25, 2026 https://github.com/NativeScript/NativeScript/pull/11558/commits/00f367fa9fbe5903bc4ad9b7987d8ec4d794ded7
064eb30 Merge branch 'main' into feat/android-frame-back-preview rafaelaugustos Oct 31, 2026 https://github.com/NativeScript/NativeScript/pull/11558/commits/064eb30fc0c3c87419c2db3b66af40f16f6bd26e
12e9bda chore(android): move Frame recreation fix to #11640 NathanWalker Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11558/commits/12e9bda9765d312edb2fd72c9b34b90d7092bc39
Clear filters https://github.com/NativeScript/NativeScript/pull/11558/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11558/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11558/files
frame-tests.android.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
back-preview.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-e2b1f6eefb68903ab486c063eac1097b228fdc61d21cde6e2da5dc47863cfae9
back-preview.android.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-a4e690f308ee8f48f0ddf8ef46b26ee373d5265740ae8eb196621c5e91179a3b
back-preview.spec.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-3f91d0db7f5d3e65b8c94ef3bb4c7af974ee9ba618e86e042b5e3318f1de4bc2
frame-common.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-b6c28c76dc54a2ecbf53229d19bcd804d8ffbecc67ad7d320ad27f4faf42ab47
index.android.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-aac2c6e11b65a628114bb7df638ed7e629e2cbe6d160c2172f37b2a7a9ef3e69
index.d.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-c2da838793c3be894a7178f566ef79c7add9d201f3fbf85b7fa1ac38deab9781
index.ts https://github.com/NativeScript/NativeScript/pull/11558/files#diff-2189f1313f510fdbd466814a8b5a2affc5443cd6a45975c87c4f71f2a4e55e43
FrameBackPreview.md https://github.com/NativeScript/NativeScript/pull/11558/files#diff-2e4280d6be9dafd15e87ba2f8cdcb77ef14212e401da8f9d359812f3a047c7a1
apps/automated/src/ui/frame/frame-tests.android.tshttps://github.com/NativeScript/NativeScript/pull/11558/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
View file https://github.com/NativeScript/NativeScript/blob/12e9bda9765d312edb2fd72c9b34b90d7092bc39/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/11558/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11558/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
https://github.com/NativeScript/NativeScript/pull/11558/files#diff-61443bc99cd1c5d92d6ddeeb91b393e328e5b0cadf6ee27b24887dde825df2d4
apps/toolbox/src/pages/back-preview.tshttps://github.com/NativeScript/NativeScript/pull/11558/files#diff-e2b1f6eefb68903ab486c063eac1097b228fdc61d21cde6e2da5dc47863cfae9
View file https://github.com/NativeScript/NativeScript/blob/12e9bda9765d312edb2fd72c9b34b90d7092bc39/apps/toolbox/src/pages/back-preview.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11558/{{ revealButtonHref }}
packages/core/ui/frame/back-preview.android.tshttps://github.com/NativeScript/NativeScript/pull/11558/files#diff-a4e690f308ee8f48f0ddf8ef46b26ee373d5265740ae8eb196621c5e91179a3b
View file https://github.com/NativeScript/NativeScript/blob/12e9bda9765d312edb2fd72c9b34b90d7092bc39/packages/core/ui/frame/back-preview.android.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11558/{{ revealButtonHref }}
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11558/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11558/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.