René's URL Explorer Experiment


Title: fix(ios): re-attach root view after in-process runtime reload by NathanWalker · Pull Request #11261 · NativeScript/NativeScript · GitHub

Open Graph Title: fix(ios): re-attach root view after in-process runtime reload by NathanWalker · Pull Request #11261 · NativeScript/NativeScript

X Title: fix(ios): re-attach root view after in-process runtime reload by NathanWalker · Pull Request #11261 · NativeScript/NativeScript

Description: When the runtime is reloaded in-process (NativeScriptRuntime.reloadApplication, used for OTA soft reboots) the app re-runs main in a fresh JS isolate while the process stays alive. iOSApplication.run() sees a live UIApplication and routes to runAsEmbeddedApp() The previous UIWindow was deallocated along with the old isolate (it was retained only by the JS-side SceneDelegate._window), and sceneWillConnectToSession, which creates the window, does not re-fire on a reload. getWindow() then returned null and runAsEmbeddedApp() bailed early, leaving a black screen. With no embedder delegate (NativeScript owns the UIApplication), the new root was presented modally over the old, now-dead root controller instead of replacing it, leaking the old controller on every reload and breaking when an overlay is mid-presentation. runAsEmbeddedApp() works same as before but now supports this use case: recreates a window bound to the active UIWindowScene when none is found (initWithWindowScene + _setWindowForScene/_setupWindowForScene); moves the rootViewController guard into the embedder-only branch, since a freshly recreated window has no controller yet; replaces the window root via setWindowRootView() for the NativeScript-owned case Supports 9.1 runtime features for OTA installed hot reloading of runtime isolates.

Open Graph Description: When the runtime is reloaded in-process (NativeScriptRuntime.reloadApplication, used for OTA soft reboots) the app re-runs main in a fresh JS isolate while the process stays alive. iOSApplication.r...

X Description: When the runtime is reloaded in-process (NativeScriptRuntime.reloadApplication, used for OTA soft reboots) the app re-runs main in a fresh JS isolate while the process stays alive. iOSApplication.r...

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

X: @github

direct link

Domain: Github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8b563686-9749-c58b-fe28-52eae53c6eda
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB1E0:1BAFD1:9D25C5:E0D764:6A638564
html-safe-nonce4c5e7284612f70bb67f92f2b7bf9853ce163de9d2ee10c0ffeff7b4b28c73d12
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUUwOjFCQUZEMTo5RDI1QzU6RTBENzY0OjZBNjM4NTY0IiwidmlzaXRvcl9pZCI6IjU0MDA3MjA5NzgyMzc5ODc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac890ed0c77c42a56fdf4f220b0d1f3b3580bda0c8f9509a371259c42c0bf411dd
hovercard-subject-tagpull_request:3813610358
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/11261/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:altWhen the runtime is reloaded in-process (NativeScriptRuntime.reloadApplication, used for OTA soft reboots) the app re-runs main in a fresh JS isolate while the process stays alive. iOSApplication.r...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee839936ba5faffb9c836dda1cf4729d50c88a32e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/NativeScript/NativeScript/pull/11261/files#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11261%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11261%2Ffiles
Sign up https://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/11261/files
Reloadhttps://Github.com/NativeScript/NativeScript/pull/11261/files
Reloadhttps://Github.com/NativeScript/NativeScript/pull/11261/files
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
NativeScript https://Github.com/NativeScript
NativeScripthttps://Github.com/NativeScript/NativeScript
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
Notifications https://Github.com/login?return_to=%2FNativeScript%2FNativeScript
Fork 1.7k https://Github.com/login?return_to=%2FNativeScript%2FNativeScript
Star 25.6k https://Github.com/login?return_to=%2FNativeScript%2FNativeScript
Code https://Github.com/NativeScript/NativeScript
Issues 771 https://Github.com/NativeScript/NativeScript/issues
Pull requests 66 https://Github.com/NativeScript/NativeScript/pulls
Discussions https://Github.com/NativeScript/NativeScript/discussions
Actions https://Github.com/NativeScript/NativeScript/actions
Projects https://Github.com/NativeScript/NativeScript/projects
Wiki https://Github.com/NativeScript/NativeScript/wiki
Security and quality 0 https://Github.com/NativeScript/NativeScript/security
Insights https://Github.com/NativeScript/NativeScript/pulse
Code https://Github.com/NativeScript/NativeScript
Issues https://Github.com/NativeScript/NativeScript/issues
Pull requests https://Github.com/NativeScript/NativeScript/pulls
Discussions https://Github.com/NativeScript/NativeScript/discussions
Actions https://Github.com/NativeScript/NativeScript/actions
Projects https://Github.com/NativeScript/NativeScript/projects
Wiki https://Github.com/NativeScript/NativeScript/wiki
Security and quality https://Github.com/NativeScript/NativeScript/security
Insights https://Github.com/NativeScript/NativeScript/pulse
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/ios-reloadhttps://Github.com/NativeScript/NativeScript/tree/fix/ios-reload
Conversation 11 https://Github.com/NativeScript/NativeScript/pull/11261
Commits 3 https://Github.com/NativeScript/NativeScript/pull/11261/commits
Checks 6 https://Github.com/NativeScript/NativeScript/pull/11261/checks
Files changed https://Github.com/NativeScript/NativeScript/pull/11261/files
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
fix(ios): re-attach root view after in-process runtime reload https://Github.com/NativeScript/NativeScript/pull/11261/files#top
Show all changes 3 commits https://Github.com/NativeScript/NativeScript/pull/11261/files
bcb87c9 fix(ios): re-attach root view after in-process runtime reload NathanWalker Jun 6, 2026 https://Github.com/NativeScript/NativeScript/pull/11261/commits/bcb87c9906de1a01e2e32cdee7113ef7684bc2d9
51b957a chore: apply suggestions from code review NathanWalker Jun 9, 2026 https://Github.com/NativeScript/NativeScript/pull/11261/commits/51b957ab0b71682a35b2df03e72dc859d4c5cce2
6c1479b feat(ios): handle scene delegates with soft reboot NathanWalker Jul 20, 2026 https://Github.com/NativeScript/NativeScript/pull/11261/commits/6c1479b255b82cd77e674a27ec2ce35a9a4bc3e7
Clear filters https://Github.com/NativeScript/NativeScript/pull/11261/files
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
packages/core/application/application.ios.tshttps://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
View file https://Github.com/NativeScript/NativeScript/blob/6c1479b255b82cd77e674a27ec2ce35a9a4bc3e7/packages/core/application/application.ios.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://Github.com/NativeScript/NativeScript/pull/11261/{{ revealButtonHref }}
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/files
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
https://Github.com/NativeScript/NativeScript/pull/11261/files#diff-258ed120cab9fe891fe8fbf8e0670c59d55e846fc003f8e3497c5d03c4e6914f
Please reload this pagehttps://Github.com/NativeScript/NativeScript/pull/11261/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.