-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[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 |
Ollyws
left a comment
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
N/A
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
N/A
iOS
Android