-
Notifications
You must be signed in to change notification settings - Fork 375
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
[Wallet] Fix Firebase regressions on iOS #3650
Conversation
…module This is similar to the patch done for react-native-firebase v5 See invertase/react-native-firebase#2734
Codecov Report
@@ Coverage Diff @@
## master #3650 +/- ##
==========================================
- Coverage 75.53% 75.53% -0.01%
==========================================
Files 619 619
Lines 15789 15791 +2
Branches 1724 1793 +69
==========================================
+ Hits 11926 11927 +1
+ Misses 3491 3488 -3
- Partials 372 376 +4
Continue to review full report at Codecov.
|
@@ -0,0 +1,5 @@ | |||
{ | |||
"react-native": { | |||
"messaging_ios_auto_register_for_remote_messages": false |
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.
This is because we don't want the system popup with asking for push permissions right when the user runs the app for the first time.
Push permission is asked later on when we create the user account.
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.
Looks like a tricky one, thanks for looking into it!
This broke in #3650 because yield call return types are not inferred yet :/
### Description This broke in #3650 with the upgrade of `react-native-firebase` because `yield call(...)` return types are not inferred yet 😞 Looks like the device I used when I worked on #3650 was already authorised for push that's why I missed that 2nd regression 🤦 ### Tested Tested that push permission is being asked again on iOS. ### Backwards compatibility Yes.
Description
Follow up PR to #3320
This PR fixes crashes on iOS related to the database module.
I had already patched those for
react-native-firebase
v5 (see invertase/react-native-firebase#2734).Turns out a similar patch is still needed for v6. I will submit a PR upstream too for v6.
Also fixed broken push registration on iOS. There was a new call needed with v6.
I upgraded
react-native-firebase
to v6.7.1 since it changed push registration too, this way we're already on top again (but for how long? 😉).These issues are reproducible only when using a real device.
Tested
I could NOT test push being received successfully as
notification-service
currently has a similar issue asblockchain-api
did a couple of days ago (fixed in #3583).Related issues
Backwards compatibility
Yes.