Implement the React-Native Pusher library for iOS and Android#56610
Implement the React-Native Pusher library for iOS and Android#56610tgolen merged 17 commits intoExpensify:mainfrom
Conversation
|
Failing |
|
@shubham1206agra Please 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] |
fabioh8010
left a comment
There was a problem hiding this comment.
Just NABs. Great work here 🚀
| const MobilePusher: PusherModule = { | ||
| init, | ||
| subscribe, | ||
| unsubscribe, | ||
| getChannel, | ||
| isSubscribed, | ||
| isAlreadySubscribing, | ||
| sendEvent, | ||
| disconnect, | ||
| reconnect, | ||
| registerSocketEventCallback, | ||
| TYPE, | ||
| getPusherSocketID, | ||
| }; |
There was a problem hiding this comment.
I saw you changed the import structure so you can do like this Pusher.getPusherSocketID() in other files, please make sure this isn't creating cycle dependencies.
There was a problem hiding this comment.
Yep, I've updated it to follow project rules of file organization for platform-specific implementations.
I believe we have import/no-cycle eslint rule turned on, so if cycle dependencies were the case the eslint check would fail.
There was a problem hiding this comment.
Yep, I've updated it to follow project rules of file organization for platform-specific implementations.
Oh yes you are right, we should do this way 👍
I believe we have import/no-cycle eslint rule turned on, so if cycle dependencies were the case the eslint check would fail.
Unfortunately import/no-cycle is not that reliable to catch cycle dependencies, the best way is to check by yourself by running the Android or iOS app with Metro and checking the logs during startup.
There was a problem hiding this comment.
I've just checked ios metro logs and there are no cycle warnings related to this PR 👌
|
@shubham1206agra any ETA on reviewing this one? |
|
@VickyStash I will pick this up today. |
|
@VickyStash Have you verified this does not happen pusher/pusher-websocket-react-native#154 in our code? |
I didn't have it during the testing. Did it crash for you? |
|
🚧 @mountiny has triggered a test hybrid app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
I tested this on real device and it's working fine. I will post the checklist in few hours. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-20.at.7.57.39.PM.moviOS: NativeScreen.Recording.2025-02-20.at.7.48.15.PM.mov |
tgolen
left a comment
There was a problem hiding this comment.
Really nicely done with this! Thank you!
|
@tgolen looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
Failing Verify HybridApp build / Comment on all PRs that are forks (pull_request) check is a #56417 and isn't related to the PR. |
|
✋ 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/tgolen in version: 9.1.3-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.3-4 🚀
|
Explanation of Change
Update the Pusher module to use
@pusher/pusher-websocket-react-nativelib on mobile platforms.Fixed Issues
$ #56480
PROPOSAL: N/A
Tests
Chat messages receiving
Expenses
Make sure "is typing" indicator is working
Room Leaving
Leave Room.Offline tests
N/A
QA Steps
Same, as in the Tests section
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
android1.mp4
Android: mWeb Chrome
android_web1.mp4
iOS: Native
ios_pt01.mp4
ios_pt02.mp4
iOS: mWeb Safari
ios_web_pt1.mp4
ios_web_pt2.mp4
MacOS: Chrome / Safari + MacOS: Desktop
web+desktop_pt01.mp4
web+desktop_pt2.mp4