Skip to content

[Native Share] Android - Share file - Share modal reopens after changing app location permission settings #59072

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 of 8 tasks
jponikarchuk opened this issue Mar 25, 2025 · 21 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Overdue Weekly KSv2

Comments

@jponikarchuk
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.18-2
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Yes, reproducible on both
If this was caught during regression testing, add the test name, ID and link from TestRail: #58834
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Samsung Galaxy Z Fold 4 / Android 14
App Component: Other

Action Performed:

Precondition:

  • App location access is "Allow only while using the app".
  • App is killed.
  1. Open an image in the device gallery app.
  2. Tap Share.
  3. Select Expensify app.
  4. Tap app back button.
  5. Go to app settings.
  6. Open location permission settings.
  7. Select Don't allow.
  8. Go back to Expensify app.

Expected Result:

App will not reopen Share modal.

Actual Result:

App reopens Share modal after changing app location permission settings.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Mar 25, 2025
Copy link

melvin-bot bot commented Mar 25, 2025

Triggered auto assignment to @kadiealexander (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Mar 25, 2025

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

Copy link

melvin-bot bot commented Mar 25, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Mar 25, 2025
Copy link
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.

@cristipaval cristipaval changed the title Android - Share file - Share modal reopens after changing app location permission settings [Native Share] Android - Share file - Share modal reopens after changing app location permission settings Mar 25, 2025
@grgia grgia added Daily KSv2 and removed Hourly KSv2 DeployBlockerCash This issue or pull request should block deployment labels Mar 25, 2025
@kadiealexander
Copy link
Contributor

Android <> iOS bug swap

@melvin-bot melvin-bot bot added the Overdue label Mar 28, 2025
@grgia
Copy link
Contributor

grgia commented Mar 28, 2025

This doesnt feel like a bug to me, WDYT @shubham1206agra

@melvin-bot melvin-bot bot removed the Overdue label Mar 28, 2025
@shubham1206agra
Copy link
Contributor

@grgia It looks like a bug since we got out of the native share menu, and then it reappeared. But this should be a low priority as this is an edge case. Or it might be an Android issue.

@grgia grgia added Weekly KSv2 and removed Daily KSv2 labels Mar 28, 2025
@grgia
Copy link
Contributor

grgia commented Mar 28, 2025

@289Adam289

@289Adam289
Copy link
Contributor

Hi, I can work on this.

@blimpich blimpich removed their assignment Mar 28, 2025
@jliexpensify
Copy link
Contributor

All yours @289Adam289

Copy link

melvin-bot bot commented Apr 8, 2025

@jliexpensify @grgia @shubham1206agra @289Adam289 this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label Apr 8, 2025
@jliexpensify
Copy link
Contributor

How are we going here @289Adam289 ?

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2025
@289Adam289
Copy link
Contributor

I've investigated this issue for a while but it appears to be more complicated than I anticipated especially that it is reproducible both on ND and Hybrid. This is a weekly so I moved my focus to more urgent tasks. I will investigate further in the coming days.

@grgia
Copy link
Contributor

grgia commented Apr 10, 2025

Thank you for the update @289Adam289

@melvin-bot melvin-bot bot added the Overdue label Apr 21, 2025
@grgia
Copy link
Contributor

grgia commented Apr 23, 2025

@289Adam289 did we fix this one, I don't see a PR linked to it

@melvin-bot melvin-bot bot removed the Overdue label Apr 23, 2025
@289Adam289
Copy link
Contributor

@grgia This one is not fixed. I didn't really have a chance to take this one. I've talked to @mateuuszzzzz and he will probably find some time next week work on this issue.

@grgia
Copy link
Contributor

grgia commented Apr 25, 2025

Thank you for the update @289Adam289

@mateuuszzzzz
Copy link
Contributor

mateuuszzzzz commented Apr 30, 2025

When we change permissions, Android restarts the activity. However, for some reason, it also sends the previously used intent again, which causes us to navigate back to the share screen. I'll be looking into potential solutions to fix this.

@mateuuszzzzz
Copy link
Contributor

mateuuszzzzz commented Apr 30, 2025

I suspect that the same issue might occur with other permissions and different types of intents, such as deeplinks. If this is confirmed, should we address all such issues?

@melvin-bot melvin-bot bot added the Overdue label May 9, 2025
@grgia
Copy link
Contributor

grgia commented May 12, 2025

I suspect that the same issue might occur with other permissions and different types of intents, such as deeplinks. If this is confirmed, should we address all such issues?

@mateuuszzzzz Do you have an update on this path? I'd be curious to hear if you think it's worth it.

@melvin-bot melvin-bot bot removed the Overdue label May 12, 2025
@mateuuszzzzz
Copy link
Contributor

mateuuszzzzz commented May 13, 2025

I was trying to find any place in the codebase that could lead to this behaviour, but it really seems like Android is re-sending those intents, and we don’t have much control over it. Tricks like storing the previous intent and comparing it with the new one could break other things.

I think it might not be worth investing more time into this task since it's the intended behaviour.

@melvin-bot melvin-bot bot added the Overdue label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Overdue Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests

8 participants