-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Fix/deeplinks when app in background #26073
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
Fix/deeplinks when app in background #26073
Conversation
mollfpr
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.
Thanks for the PR @kubabutkiewicz
Could you explain the different of SidebarUtils.isSidebarLoadedReady with Session.waitForUserSignIn?
| const reportID = ReportUtils.getReportIDFromLink(url); | ||
| if (reportID) { | ||
| Report.setLastOpenedPublicRoom(reportID); | ||
| Onyx.merge(ONYXKEYS.LAST_OPENED_PUBLIC_ROOM_ID, reportID); |
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.
Any reason we are doing this?
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.
Yes , according to onyx documentation set should be used only when deleting the key from store or resetting object or array of data. In our case we are only storing primitive value so to that case better is to use merge.
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.
Also we are removing Report.setLastOpenedPublicRoom(reportID) because it was causing circular dependency
Yeah sure, in our case we just want to wait with navigation till user is signed in so its more clear to create such a method also if we will use |
Reviewer Checklist
Screenshots/VideosWeb26073.Web.mp4Mobile Web - Chrome26073.mWeb-Chrome.mp4Mobile Web - Safari26073.mWeb-Safari.mp4Desktop26073.Desktop.mp4iOS26073.iOS.mp4Android26073.Android.mp4 |
|
Thanks @kubabutkiewicz, for the explanation. Generally, the code looks good, and the test results are working fine. I tried the case from this PR #20740; the PR introduced the |
|
Hi @mollfpr Yes indeed there is something wrong but I think its not caused but my changes. Untitled.mp4It looks like its not happening when you have app opened for the first time but on next tries it redirect you to Not found page. |
|
Thanks for the check, @kubabutkiewicz. Yeah, it seems like it's already in |
mollfpr
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 and tests well 👍
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #23745 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
…ix/deeplinks-when-app-in-background-v2
|
@hayata-suenaga Hi will you be able to review it ? |
|
omg I completely missed this. Let me review right now |
hayata-suenaga
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.
🚀
|
Hi @hayata-suenaga , this pr is not merged due to merge freeze ? |
|
forgot to merge 😓 |
|
✋ 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/hayata-suenaga in version: 1.3.69-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
|
🚀 Deployed to staging by https://github.com/hayata-suenaga in version: 1.3.70-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|

Deeplink to every screen based on linking config when opening app from background
Details
To action responsible for navigating users from deeplinks when user is logged out added posibility to navigate to all routes not only specific ones
Fixed Issues
$ #23745
PROPOSAL: #23745 (comment)
Tests
Offline tests
QA Steps
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
ios.mp4
Android
android.mp4