-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore: prepare for Firebase SDK version bumps #6120
Conversation
…sions are changed
…at is in use and warn if the version is incompatible with FlutterFire.
Visit the preview URL for this PR (updated for commit 09d730b): https://flutter-firebase-docs--pr6120-salakar-bump-sdks-ven6emy8.web.app (expires Wed, 19 May 2021 16:04:37 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
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.
providing it passes tests, LGTM.
…thod usage with new `logEvent` name
…age with new `logEvent` name
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.
LGTM - clever leaving admob in but unhitching it like that. I'll see if that's possible with RNFB...
@mikehardy I had to go quite far back on the iOS version of the pod since FlutterFire AdMob hasn't been updated for a while - to keep the build happy. I reckon RNFB will be ok with the latest version however since it was kept in sync with Firebase core. |
… `getToken` & `deleteToken` methods since the native Firebase SDKs no longer support it cross-platform.
… after other assertions
…roid SDK issue is resolved
0e8bfcf
to
09d730b
Compare
String token = FirebaseInstanceId.getInstance().getToken(senderId, "*"); | ||
String token = Tasks.await(FirebaseMessaging.getInstance().getToken()); |
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 potentially a big deal - needs testing to determine if deleteToken/getToken actually behave now, c.f.
firebase/firebase-ios-sdk#6433 (comment)
invertase/react-native-firebase#3714 (comment)
invertase/react-native-firebase#1510 (comment)
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.
For anyone checking this later, if that ever happens. I added a test for this scenario in react-native-firebase that exercised the underlying ios / android SDKs and their behavior appears correct now, this is not an issue (anymore) as far as I can tell. 👍
Description
See individual commits for details of changes.
Related Issues
Unblocks #5936 & App Check.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
).This will ensure a smooth and quick review process. Updating the
pubspec.yaml
and changelogs is not required.///
).melos run analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?