Skip to content

Android - Public room link opens Home tab instead of public room #100261

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.4.69-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://github.com/Expensify/Mobile-Expensify/pull/14097
Email or phone of affected tester (no customers): jsdoijnodsdisojo@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Samsung Galaxy S25 FE / Android 16
App Component: Other

Action Performed:

  1. Open public room link from external app - https://staging.new.expensify.com/r/6731266495832101

Expected Result:

Public room will open in app.

Actual Result:

Home tab opens.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7249733_1788414596014.Screen_Recording_20260903_134733_Expensify.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7249733

Issue OwnerCurrent Issue Owner: @TaduJR

Activity

  1. added
    DeployBlockerCash
    on Sep 3, 2026
  2. applause-bot commented on Sep 3, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/e6061664cf9de11d08fc3b7f1c12eea6e94be6f436046f55a70f58b22289a7ea

  3. added
    Bug
    on Sep 3, 2026
  4. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    Triggered auto assignment to @mollfpr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. github-actions commented on Sep 3, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. MelvinBot commented on Sep 3, 2026

    @MelvinBot
    Contributor

    🔍 Investigation Summary

    Not caused by any Expensify/App PR on this checklist. This is an Android native (HybridApp) regression that came in with the Mobile-Expensify submodule bump.

    Likely cause: Mobile-Expensify#14097 — the R8 optimizer change tracked by #100003. High confidence it's the causing change; medium confidence on the exact mechanism.

    Recommendation: revert Expensify/Mobile-Expensify#14097 (roll the submodule pointer back) and re-cut 9.4.69. Per #100003 the change is a one-line build.gradle swap and "rollback is reverting the same one line", so the revert is clean.

    Owners: TaduJR and AndrewGable (both assigned on #100003). Please confirm the author/approvers of #14097.

    Labels: no changes. DeployBlockerCash stays — the fix ships in the App/HybridApp deploy and this isn't reproducible on production.

    ⚠️ Repro requires a RELEASE build

    R8 only runs on release builds (minifyEnabled lives under buildTypes.release). A local debug build will never reproduce an R8 regression. TaduJR — this likely explains the "can't repro on latest main" reports here and on the sibling issues while Applause reproduces consistently. Please retry on the staging/adhoc release build.

    Four sibling blockers on this same build

    All Android-app-only, all at a native intent/deep-link boundary, all attributed to #14097 on #100003:

    Issue Symptom Native entry point
    #100246 App shortcut doesn't open scan flow launcher shortcut intent
    #100256 "Switch to Expensify Classic" goes to mWeb native module call
    #100257 Magic-link login stuck on Enter Magic Code deep link
    #100258 Native share shows "Please sign in" share intent
    This issue Public room link opens Home deep link

    Five simultaneous Android-only native-boundary failures in one build, with zero App-side changes in any of those paths, is the signature of a build-shrinker config change — not five independent bugs.

    📋 Detailed analysis

    Every App PR ruled out

    Production is 9.4.66-0, staging is 9.4.69-0, so production...staging covers the whole delta. Filtering the full changed-file list for anything touching deep links, initial-URL handling, navigation, linking config, routes, screens, the HybridApp bridge, the Android manifest or ProGuard returns nothing:

    gh api "repos/Expensify/App/compare/production...staging" --jq \
      '[.files[].filename] | map(select(test("DeepLink|Link.ts|InitialURL|hybrid|Hybrid|Navigation|ROUTES|SCREENS|AndroidManifest|proguard|linkingConfig")))'
    → []
    

    src/DeepLinkHandler.tsx, src/libs/actions/Link.ts, src/components/InitialURLContextProvider.tsx, src/setup/hybridApp/index.native.ts, src/libs/Navigation/**, src/ROUTES.ts, src/SCREENS.ts and modules/hybrid-app/** are byte-identical to production.

    I also reviewed the changed-file list of all 22 App PRs on checklist #100228 (#94738, #97145, #98131, #98472, #98478, #99004, #99124, #99130, #99217, #99669, #99685, #99754, #99767, #99981, #99994, #100017, #100084, #100106, #100116, #100200, #100205, #100210). Docs, Search/Onyx refactors, workspace rules, wallet/deposit, Business Central params, and a 2FA sign-in change. #100084 is the only one touching Session/index.ts, and its change is gated on if (twoFactorAuthCode && storedAuthToken) — the 2FA step only, irrelevant to anonymous public-room access.

    Decisive on its own: the bug is Android app only. All 22 App PRs are shared JS, so a JS regression would hit iOS app and web too.

    The only remaining non-JS entries in the diff are version bumps (android/app/build.gradle 9.4.66-0 → 9.4.69-0, three ios/**/Info.plist) plus the Mobile-Expensify pointer. On the checklist the only content-bearing submodule bump is #14097; every later bump is a version bump.

    Why the app lands on Home

    Permalinks at staging head c9dd46f6704956e162eb4dd42469aa98bfbffcf3. On HybridApp, Linking.getInitialURL is entirely delegated to the native bridge:

    The intent was delivered (the app launched), but the URL never reached the RN layer, so the handler took its no-URL path:

    doneCheckingPublicRoom() with no initial URL dismisses the splash and boots the default route — the Home tab. Exactly the reported behaviour. All of these files are unchanged from the version that works in production.

    Why the native side stopped delivering the URL can't be confirmed from this repo — the Mobile-Expensify owners need to check that. The leading hypothesis, consistent with all five sibling blockers, is that enabling R8 optimization lets the optimizer inline or drop code that React Native reaches reflectively at the native-module / intent-handling boundary, failing silently rather than crashing. Existing keep rules were written for a shrink-only configuration.

    Alternatives considered


    Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.


    view run

  8. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    @mollfpr — to hire @TaduJR on Upwork, add the External label so a job is created and the offer is sent automatically.

  9. mollfpr commented on Sep 3, 2026

    @mollfpr
    Contributor

    Confirm, reverting the https://github.com/Expensify/Mobile-Expensify/pull/14097 with the Adhoc here: https://github.com/Expensify/Mobile-Expensify/pull/14100, fixing this issue.

    Screen.Recording.2026-09-03.at.14.08.40.mov

    Also, comparing the v9.4.69-0 with v9.4.68-1, where it does not reproduce.

    Screen.Recording.2026-09-03.at.14.11.15.mov
  10. mollfpr commented on Sep 3, 2026

    @mollfpr
    Contributor

    The offending PR is reverted. Requested for CP here: https://expensify.slack.com/archives/C07J32337/p1788419772691019

  11. IuliiaHerets commented on Sep 3, 2026

    @IuliiaHerets

    Issue is not repro in the latest build

    Screen_Recording_20260904_003123_Expensify.mp4
  12. added
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on Sep 3, 2026
  13. melvin-bot commented on Sep 8, 2026

    @melvin-bot

    @TaduJR Eep! 4 days overdue now. Issues have feelings too...

  14. melvin-bot commented on Sep 10, 2026

    @melvin-bot

    @TaduJR 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  15. TaduJR commented on Sep 12, 2026

    @TaduJR
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions