René's URL Explorer Experiment


Title: Support use of SentryNavEffect in multi-Activity and multi-Fragment applications · Issue #6345 · getsentry/sentry-java · GitHub

Open Graph Title: Support use of SentryNavEffect in multi-Activity and multi-Fragment applications · Issue #6345 · getsentry/sentry-java

X Title: Support use of SentryNavEffect in multi-Activity and multi-Fragment applications · Issue #6345 · getsentry/sentry-java

Description: Summary Extend the Android Nav3 integration to support applications with multiple NavDisplay <> SentryNavEffect pairs hosted by different lifecycle owners. Our initial Nav3 implementation assumed that only one SentryNavEffect would be ac...

Open Graph Description: Summary Extend the Android Nav3 integration to support applications with multiple NavDisplay <> SentryNavEffect pairs hosted by different lifecycle owners. Our initial Nav3 implementation assumed t...

X Description: Summary Extend the Android Nav3 integration to support applications with multiple NavDisplay <> SentryNavEffect pairs hosted by different lifecycle owners. Our initial Nav3 implementation ass...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/6345

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support use of SentryNavEffect in multi-Activity and multi-Fragment applications","articleBody":"### Summary\n\nExtend the Android Nav3 integration to support applications with multiple `NavDisplay` \u003c> `SentryNavEffect` pairs hosted by different lifecycle owners.\n\nOur initial Nav3 implementation assumed that only one `SentryNavEffect` would be active at a time. (Under the hood, `SentryNavEffect` writes to a shared, mutable `IScope`.) That's fine for single-Activity apps with singly-rooted nav graphs, but it won't work for multi-Activity or multi-Fragment applications where  each Activity or Fragment has its own nav subgraph. (Usually, each subgraph will have its own `NavDisplay` \u003c> `SentryNavEffect` pair.) \n\nIn particular, multiple `SentryNavEffect` instances may try to update the shared `IScope` when the host app transitions from one Activity / Fragment to the next. Under the current implementation, that can cause nav data to become stale or nav transactions to interfere with each other.\n\nThis issue tracks the work needed to extend Sentry Nav3 support to multi-Activity and multi-Fragment applications.\n\n### Setups to support\n\n- A single-Activity app with one `NavDisplay` \u003c> `SentryNavEffect` pair. (Already supported by the existing `SentryNavEffect` implementation.)\n- A multi-Activity app where each Activity has at most one `NavDisplay` \u003c> `SentryNavEffect` pair.\n- A multi-Fragment app where each Fragment has at most one `NavDisplay` \u003c> `SentryNavEffect` pair (and the host Activity or Activities have no `SentryNavEffect`(s) of their own).\n- A `ViewPager2` whose pages are Fragments, each with at most one `NavDisplay` \u003c> `SentryNavEffect` pair.\n- An Activity or Fragment with its own `NavDisplay` \u003c> `SentryNavEffect` pair that stays visible beneath a `DialogFragment` or translucent Activity with its own pair.\n\n### Setups that will remain unsupported\n\n- Sibling `NavDisplay` and `SentryNavEffect` pairs in the same Activity or Fragment.\n- Nested `NavDisplay` and `SentryNavEffect` pairs in the same Activity or Fragment. (If you nest `NavDisplay`s, consider using `SentryNavEffect` only with the outermost one.)\n- `SentryNavEffect` instances in multiple Activities or Fragments that users can interact with at the same time, such as two Activities from the same app in [multi-resume mode](https://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-resume), or an Activity and hosted Fragments where the Activity and Fragments each have their own `NavDisplay` and `SentryNavEffect` pairs.\n- `SentryNavEffect` instances in pages or tabs that share their host's lifecycle, such as Compose `HorizontalPager` pages, `ViewPager2` pages that aren't Fragments, or tabs that are kept in the composition when inactive. (Those pages or tabs share one `LifecycleOwner`, so at most one can call `SentryNavEffect`.)\n\n### Proposed implementation\n\nSupporting the new setups listed above requires coordinating multiple, simultaneously active `SentryNavEffect`s and their updates to the current (mutable + shared) `IScope` vended by `IScopes`. \n\nWe can do so by replacing the `IScopes` instance our `BackStackObserver` already talks to with a smarter version (`NavScopes`) that can toggle between the shared underlying scope and a per-instance staged version, depending on whether the observer is associated with an incoming or outgoing SentryNavEffect. (Under the hood, NavScopes can use lease-based ownership to decide which effect can update the scope.)\n\nThat^^ let us keep updates to SentryNavEffect, BackStackObserver, etc. to a minimum. And it will make it easy to swap out our implementation in the future, should we ever hide our IScopes API behind a `LocalSentrySpan`-esque system (or any of a number of other possibilities).\n\n### Follow-up\n\nUpdate the Android Navigation documentation to describe the supported multi-root lifecycle scenarios and current limitations.\n\n### References\n\n- PR stack: [#6301](https://github.com/getsentry/sentry-java/pull/6301), [#6302](https://github.com/getsentry/sentry-java/pull/6302), [#6304](https://github.com/getsentry/sentry-java/pull/6304), [#6305](https://github.com/getsentry/sentry-java/pull/6305), [#6307](https://github.com/getsentry/sentry-java/pull/6307), [#6309](https://github.com/getsentry/sentry-java/pull/6309)","author":{"url":"https://github.com/0xadam-brown","@type":"Person","name":"0xadam-brown"},"datePublished":"2026-10-21T12:10:45Z","url":"https://github.com/getsentry/sentry-java/issues/6345"}

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:b8acd0ff-6fb6-3983-12b3-960d2a2e41e8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA496:271798:88AF8:BE2C6:6B04626D
html-safe-nonce8cc5e077424c05c186b1258af5a6c49e09ddf3c45cc658e01279cb439ebd475d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDk2OjI3MTc5ODo4OEFGODpCRTJDNjo2QjA0NjI2RCIsInZpc2l0b3JfaWQiOiIyMDc3MTEzODI3NTgwOTk0MTU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac28bd69274b81ee7698b646d9fe270ebb54be7049c4cbde98d61729a0df98fbe0
hovercard-subject-tagissue:5960211453
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/getsentry/sentry-java/6345/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2a7f5eb9053203660396c9663475199b21aff94a2c6b35f759081b5247cd7a5f/getsentry/sentry-java/issues/6345
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2a7f5eb9053203660396c9663475199b21aff94a2c6b35f759081b5247cd7a5f/getsentry/sentry-java/issues/6345
og:image:altSummary Extend the Android Nav3 integration to support applications with multiple NavDisplay <> SentryNavEffect pairs hosted by different lifecycle owners. Our initial Nav3 implementation assumed t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:username0xadam-brown
hostnamegithub.com
expected-hostnamegithub.com
None2d58451b4bcb73c33c67bfb6b28fb75fe6d5e279daf9b560fa4fd832f3d8c9a6
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
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
release03e114520787ad27289207f153520ef97461127c
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/6345#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F6345
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%2Fgetsentry%2Fsentry-java%2Fissues%2F6345
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=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/6345
Reloadhttps://github.com/getsentry/sentry-java/issues/6345
Reloadhttps://github.com/getsentry/sentry-java/issues/6345
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6345
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6345
Support use of SentryNavEffect in multi-Activity and multi-Fragment applicationshttps://github.com/getsentry/sentry-java/issues/6345#top
https://github.com/0xadam-brown
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
Platform: Androidhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Android%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com/0xadam-brown
0xadam-brownhttps://github.com/0xadam-brown
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#issue-5960211453
multi-resume modehttps://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-resume
#6301https://github.com/getsentry/sentry-java/pull/6301
#6302https://github.com/getsentry/sentry-java/pull/6302
#6304https://github.com/getsentry/sentry-java/pull/6304
#6305https://github.com/getsentry/sentry-java/pull/6305
#6307https://github.com/getsentry/sentry-java/pull/6307
#6309https://github.com/getsentry/sentry-java/pull/6309
0xadam-brownhttps://github.com/0xadam-brown
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
Tracking Issuehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Tracking%20Issue%22
Platform: Androidhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Android%22
State: Needs Discussionhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22State%3A%20Needs%20Discussion%22
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#event-33843043159
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#issuecomment-6315573096
Linear Codehttps://linear.app
JAVA-785https://linear.app/getsentry/issue/JAVA-785
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#event-33843054721
0xadam-brownhttps://github.com/0xadam-brown
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#event-33843091994
0xadam-brownhttps://github.com/0xadam-brown
Tracking Issuehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Tracking%20Issue%22
State: Needs Discussionhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22State%3A%20Needs%20Discussion%22
on Oct 21, 2026https://github.com/getsentry/sentry-java/issues/6345#event-33843107862
0xadam-brownhttps://github.com/0xadam-brown
on Oct 22, 2026https://github.com/getsentry/sentry-java/issues/6345#event-33924733676
0xadam-brownhttps://github.com/0xadam-brown
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Oct 23, 2026https://github.com/getsentry/sentry-java/issues/6345#event-34052620004
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/6345
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/6345
0xadam-brownhttps://github.com/0xadam-brown
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
ImprovementIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Improvement%22
Platform: Androidhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Android%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.