You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Reject] Android - Notification - No notification received when an expense is rejected. #71385
InternalRequires API changes or must be handled by Expensify staffNewFeatureSomething to build that is a new item.ReviewingHas a PR in reviewWeeklyKSv2
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.
Open the Expensify app.
Log in with User A.
As User B, on another environment, invite User A as member of a workspace.
As User A, open workspace chat and create a manual expense.
Tap on "Submit" on the preview of the just created expense.
As User B, open the report of the expense.
Tap on "More" and select "Reject"
Enter any reason and reject the expense.
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.
@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.
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.
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?
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
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.
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
InternalRequires API changes or must be handled by Expensify staffNewFeatureSomething to build that is a new item.ReviewingHas a PR in reviewWeeklyKSv2
Activity
melvin-bot commentedon Sep 26, 2025
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.twisterdotcom commentedon Sep 29, 2025
cc @garrettmknight is this coming, or is it a legit bug?
Julesssss commentedon Sep 29, 2025
@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.
garrettmknight commentedon Sep 29, 2025
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.
twisterdotcom commentedon Sep 29, 2025
Thanks for the context folks. @Julesssss could this be
Externalor 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?Julesssss commentedon Sep 29, 2025
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
13 remaining items
garrettmknight commentedon Oct 7, 2025
I don't think we need to show 'Reject' as part of this. It should just show the comment as normal.
twisterdotcom commentedon Oct 13, 2025
@Julesssss I think we just need your input here on how to continue.
Julesssss commentedon Oct 13, 2025
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.
twisterdotcom commentedon Oct 13, 2025
Okay, and do we agree this is a CRITICAL #migrate project? Who would you recommend could take this on @Julesssss if not you?
trjExpensify commentedon Oct 13, 2025
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:
Perhaps @arosiclair might fancy this one?
Julesssss commentedon Oct 13, 2025
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.
arosiclair commentedon Oct 21, 2025
PRs are out for this
trjExpensify commentedon Oct 29, 2025
Can we close?
arosiclair commentedon Oct 30, 2025
Yeah last PR is on prod. Not sure why this didn't get automatically closed.