-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix(messaging): ensure token is refreshed when calling deleteToken on iOS
#5571
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
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). react-native-firebase – ./🔍 Inspect: https://vercel.com/invertase/react-native-firebase/F5gse5SKK4R1xkY4Zm8PrBKaWfrG react-native-firebase-next – ./website_modular🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/G8KYZkscL1eAm83JdyNUUet3NAvZ |
deleteToken on iOS
Codecov Report
@@ Coverage Diff @@
## master #5571 +/- ##
=======================================
Coverage 74.17% 74.17%
=======================================
Files 106 106
Lines 4405 4405
Branches 941 941
=======================================
Hits 3267 3267
Misses 1067 1067
Partials 71 71 |
|
Great - I just subscribed to the upstream issue and it looks like Paul B over there has already put it in a work queue, very curious to hear the result |
|
I'm not sure we ever received the upstream guidance we were looking for, specifically if we should delete the installation token, or if simply deleting the messaging token is good enough? They do appear to have a fix coming for messaging token delete though and it is tagged for firebase-ios-sdk 8.6.0 |
|
This appears to be blessed by upstream but they also indicate they have fixed the underlying problem. I'd like to see if underlying sdk 8.6.0 resolves this before using an API from another module but will merge this if 860 has no effect |
|
@mikehardy thanks Mike. Yeah, thought that too - they seem to be happy with this and confirmed there are no side-effects to using it 😄 But agreed, probably don't need it if |
|
8.6.0 is rolling out now, already on cocoapods if you want to do a version override to test it? https://rnfirebase.io/#ios The performance I'm getting from Installations.delete followed by getToken as I'm implementing that module is...wow |
Description
This will always refresh the fcm token, but it's unclear to me if this is the correct approach or not based on the documentation and changelog
I've opened up a ticket on firebase/firebase-ios-sdk#8491 for guidance from the iOS team.
I don't believe there are any side-effects of always deleting the installations id, but it would be good to get confirmation as this approach always will delete it when refreshing the fcm token.
Related issues
Fixes #5570
Release Summary
Checklist
AndroidiOSe2etests added or updated inpackages/\*\*/e2ejesttests added or updated inpackages/\*\*/__tests__Test Plan
Think
react-native-firebaseis great? Please consider supporting the project with any of the below:React Native FirebaseandInvertaseon Twitter