-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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(messaging): get remote message from messaging store on new intent #4634
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/3yax8a6sz |
Codecov Report
@@ Coverage Diff @@
## master #4634 +/- ##
=======================================
Coverage 88.93% 88.93%
=======================================
Files 109 109
Lines 3712 3712
Branches 347 347
=======================================
Hits 3301 3301
Misses 369 369
Partials 42 42 |
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.
Good find - nice extract method refactor to implement the fix - should pass CI and if the CLA is signed I'll merge this. I don't have anything else pending right now so I could release it as a 10.1.1 pretty much straight away, though obviously you can use patch-package to ingest it in the meanwhile (the CI check for patch packages will have an artifact attached to it with the necessary patches, for convenience, just follow the details link next to it)
Nice that was quick 👍 I have already patched it, but thanks for the tip of using the attached artifact. |
CI working just fine (as expected, really) now that GitHub actions are working well again after their degradation yesterday |
Should be out in v10.1.1 now, we had some issues with publishing last few months which I believe I have fixed, but I mention that because when you adopt the release pay special attention to the cross-package peer dependencies to make sure nothing is skewed. Cheers! |
Description
ReactNativeFirebaseMessagingModule -> onNewIntent
is not checking the messaging store for remote messages (likegetInitialNotification
does).Steps to reproduce the bug:
ReactNativeFirebaseMessagingReceiver.notifications
).ReactNativeFirebaseMessagingReceiver.notifications
is reseted).ReactNativeFirebaseMessagingReceiver.notifications
is empty).This results in
onNewIntent
is unable to get the remote message because it is not checking in the persisted store.Related issues
I have not submitted an issue for this problem and I have not found any other issues.
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter