-
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(ios, messaging): add ios version guard for UNAuthorizationOptionProvidesAppNotificationSettings
usage
#5986
Conversation
Add check for `UNAuthorizationOptionProvidesAppNotificationSettings` in iOS 12 and newer
Add check for `UNAuthorizationOptionProvidesAppNotificationSettings`
This pull request is being automatically deployed with Vercel (learn more). react-native-firebase-next – ./website_modular🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/F2hJiyFXzUK11jb9LJYq3jXCvwwB react-native-firebase – ./🔍 Inspect: https://vercel.com/invertase/react-native-firebase/Db87sRicvDUBh3vGBix97Y142SAS |
UNAuthorizationOptionProvidesAppNotificationSettings
in iOS 12 and newerUNAuthorizationOptionProvidesAppNotificationSettings
usage
UNAuthorizationOptionProvidesAppNotificationSettings
usageUNAuthorizationOptionProvidesAppNotificationSettings
usage
Codecov Report
@@ Coverage Diff @@
## main #5986 +/- ##
============================================
- Coverage 52.95% 52.59% -0.36%
Complexity 622 622
============================================
Files 208 208
Lines 10189 10189
Branches 1619 1619
============================================
- Hits 5395 5358 -37
- Misses 4540 4574 +34
- Partials 254 257 +3 |
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 this! At first I thought this was just a lint-type thing but this is actually important to fix possible crash on ios 11 devices, so I'll merge and release it as soon as CI finishes digesting the change.
Ironically I had started work on making these errors much easier to see with #5935 since I noticed this warning myself but it was lost in the noise, and it was on my list of things to clean but you beat me to it :-). I'll sweep the rest of the warnings shortly and RNFB will build quietly again
UNAuthorizationOptionProvidesAppNotificationSettings
usageUNAuthorizationOptionProvidesAppNotificationSettings
usage
There are some problems while running ios e2e (timeout). I don't think that would be an issue. |
Indeed - that's a flaky test which has been a pain for me the last few weeks, I've got a branch going right now locally where I will clean that up. I agree with you that the timeout on that test (storage.getDownloadUrl) should have nothing to do with your messaging change, further the app built (so compile works) and already ran through the e2e tests for the messaging module (they are alphabetical) prior to getting to storage. So I'm comfortable merging this. Thanks again! |
You're welcome! Yeah, I know it's much of a pain for me as well to deal with e2e tests in our CI. |
Nailed that flaky test though :-) 454dc70 - honestly you (as a contributor doing the awesome thing by submitting a PR) getting hung up on it was the final straw. I want the PR experience to be clean + easy 😅 - so at least for future PRs, and at least for now, our CI is all green first time. So I suppose I owe you thanks not just for the PR but for motivation to make the whole thing better. Cheers |
Description
There are some warnings while using UNAuthorizationOptionProvidesAppNotificationSettings without version check.
Related issues
No related issues.
Release Summary
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