-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[No QA] Background refresh for Android #24128
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
Conversation
Need to fix
EDIT: gonna require a big change. Since this isn't necessary, I'll do this in a follow up PR to keep this simple. |
4783d26
to
7028add
Compare
Alright this is ready to review though held on reconnectApp changes. For now I just hardcoded |
src/libs/Notification/PushNotification/backgroundRefresh/index.android.js
Show resolved
Hide resolved
Tests well on Android, but I'm unable to test push notifications on iOS without the certs. Is it all good to proceed without, given it's no-op on everything but Android? |
Yeah that's fine. The iOS test is really just re-verifying existing behavior and I've tested it pretty well on my end. |
Reviewer Checklist
Screenshots/VideosWebN/AMobile Web - ChromeN/AMobile Web - SafariN/ADesktopN/AiOSN/A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…id-background-refresh
This is off hold and ready for review @Julesssss @pecanoro |
🧪🧪 Use the links below to test this build in android and iOS. Happy testing! 🧪🧪 |
✋ 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/arosiclair in version: 1.3.53-0 🚀
|
@@ -0,0 +1,40 @@ | |||
import Onyx from 'react-native-onyx'; | |||
import * as App from '../../../actions/App'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#24128 (comment) will be fixed in #24174
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.53-2 🚀
|
Details
Adds a call to our
App.reconnectApp()
action for Android that will refresh the app when the push notification is received in the backgroundFixed Issues
$ #15058
Tests
Android and iOS test only
Offline tests
None
QA Steps
None
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
N/A
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
N/A
iOS
Android