-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Class Android notifications as a Message to improve delivery speed #14653
Class Android notifications as a Message to improve delivery speed #14653
Conversation
@eVoloshchak @jasperhuangg One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@eVoloshchak here's a screenshot of the internal Stack Overflow post: |
I've got a physical android device that I can test this out with! |
Nice, let me know if you have any issues and I can help out. |
@Julesssss does the Android build onto a physical device normally take like >5 minutes for you? |
@jasperhuangg, the build took almost 8 minutes for me, I think it shouldn't take this long (it didn't in the past). I'm wondering if network could affect this |
If you long press on a notification and then press |
Reviewer Checklist
Screenshots/VideosAndroidScreen_Recording_20230131-212950_Settings.mp4 |
Reviewer Checklist
Screenshots/Videos |
🎯 @eVoloshchak, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #14710. |
Yeah, usually 8 and it's incredibly annoying as native builds take about 20 seconds 😭 |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.2.64-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.64-7 🚀
|
Background
Android notifications are still being throttled and delivered in bursts, despite us recently using the maximum priority, and introducing notification categories.
Solution
This PR simply categorizes notifications as Messages, in an attempt to increase delivery prioritization by the OS.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/258825
Tests
Confirm notifications are received
Offline tests
QA Steps
N/A - changes to the app delivery window are vague and not testable. The existing notification regression tests will cover the regular cases.
For internal QA, @Julesssss will attempt to confirm this improvement.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Android is the only modified platform.