Skip to content

[Reject] Android - Notification - No notification received when an expense is rejected. #71385

Closed

Description

@vincdargento

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.2.18-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: #70609
Email or phone of affected tester (no customers): ibellicotest+1852@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 / Android 12 (Hybrid app)
App Component: Notifications

Action Performed:

Prerequisite: Have two accounts opened on two different devices or environments.
Prerequisite 2: User B has at least one workspace created with delayed submissions and approvals enabled.

  1. Open the Expensify app.
  2. Log in with User A.
  3. As User B, on another environment, invite User A as member of a workspace.
  4. As User A, open workspace chat and create a manual expense.
  5. Tap on "Submit" on the preview of the just created expense.
  6. As User B, open the report of the expense.
  7. Tap on "More" and select "Reject"
  8. Enter any reason and reject the expense.
  9. As User A, note that no notification is received after this last action.

Expected Result:

When the admin of a workspace, rejects an expense created by a member, a notification triggered by this action should be received by member.

Actual Result:

When the admin of a workspace, rejects an expense created by a member, no notification is received on member´s side.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

bug.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @arosiclair

Activity

  1. added
    Daily
    Bug
    on Sep 26, 2025
  2. melvin-bot commented on Sep 26, 2025

    @melvin-bot

    Triggered auto assignment to @twisterdotcom (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.

  3. twisterdotcom commented on Sep 29, 2025

    @twisterdotcom
    Contributor

    cc @garrettmknight is this coming, or is it a legit bug?

  4. Julesssss commented on Sep 29, 2025

    @Julesssss
    Contributor

    @twisterdotcom this would be a new feature, as until now we have not notified NewDot users for rejections. One issue is that the comment is sent seperately to the reject event, and we'll need some refactoring in order to detect the push notification is for rejection, so we can style the message accordingly.

  5. garrettmknight commented on Sep 29, 2025

    @garrettmknight
    Contributor

    I think we could call it either, honestly. We didn't overtly design for notifications since we thought that they'd send when the rejection reason is posted from the approver, like any other system message, so you could call this a 'new feature' in that sense. Equally, I'd imagine that any comment from a user would trigger a notification, so this could be classed as a bug.

  6. twisterdotcom commented on Sep 29, 2025

    @twisterdotcom
    Contributor

    Thanks for the context folks. @Julesssss could this be External or would it need to be internal? And either way, could it be done in isolation, or does it need to change enough that it would be a larger project?

  7. Julesssss commented on Sep 29, 2025

    @Julesssss
    Contributor

    Right now keep it internal I would say. It's a nightmare getting external devs setup for testing push notifications (especially iOS). There is some project in progress to simplify this in the future -- also we'd need someone with access to backend code

  8. added
    Internal
    Weekly
    and removed
    Daily
    Bug
    on Sep 29, 2025
  9. 13 remaining items

  10. garrettmknight commented on Oct 7, 2025

    @garrettmknight
    Contributor

    I don't think we need to show 'Reject' as part of this. It should just show the comment as normal.

  11. twisterdotcom commented on Oct 13, 2025

    @twisterdotcom
    Contributor

    @Julesssss I think we just need your input here on how to continue.

  12. Julesssss commented on Oct 13, 2025

    @Julesssss
    Contributor

    I don't think we need to show 'Reject' as part of this. It should just show the comment as normal.

    That seems fine to me.

    So the solution here is to figure out how to get the notification to be sent (initially after reject was introduced it was), then tailor the message if necessary.

  13. twisterdotcom commented on Oct 13, 2025

    @twisterdotcom
    Contributor

    Okay, and do we agree this is a CRITICAL #migrate project? Who would you recommend could take this on @Julesssss if not you?

  14. trjExpensify commented on Oct 13, 2025

    @trjExpensify
    Contributor

    https://stackoverflowteams.com/c/expensify/questions/22123/22124#22124 - I think this is the "leading" SO on actionable system messages.

    I think we're aligned that the plan is to simply mark this reject system message as an actionable system message FOR the submitter and then it’ll follow the existing logic of:

    • Send a push notification to the submitter
    • Mark the chat as unread for the submitter
    • If unread after 10mins, send an email/sms fallback to the submitter

    Perhaps @arosiclair might fancy this one?

  15. Julesssss commented on Oct 13, 2025

    @Julesssss
    Contributor

    Okay, and do we agree this is a CRITICAL #migrate project? Who would you recommend could take this on @Julesssss if not you?

    Any internal engineer can take this. They can use browserstack to verify push notifications if they don't have a physical device.

    I'm switching focus to a migrate project. I can help any engineer who isn't familiar with this code, else can pick it up towards the end of the year.

  16. self-assigned this
    on Oct 14, 2025
  17. arosiclair commented on Oct 21, 2025

    @arosiclair
    Contributor

    PRs are out for this

  18. added
    Reviewing
    on Oct 21, 2025
  19. trjExpensify commented on Oct 29, 2025

    @trjExpensify
    Contributor

    Can we close?

  20. arosiclair commented on Oct 30, 2025

    @arosiclair
    Contributor

    Yeah last PR is on prod. Not sure why this didn't get automatically closed.

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

Metadata

Metadata

Labels

InternalNewFeatureReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions