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
🐛 [cloud_firestore: ^3.1.12] Listener snapshot data only contains the updated value after a Firestore.update when offline on Android. #8496
Comments
@edfast
Can you provide your app and project level |
@darshankawar my bad! The issue I meant to refer to is in another repository so can't use hashtag to link to it here ofc. Updated the link now. The project build.gradle:
The app build.gradle:
|
Thanks for the update. I see that you are using :
/cc @russellwheatley |
@darshankawar Btw, what bom version of Cloud Firestore is the flutter plugin cloud_firestore version 3.1.13 using? I can't find it anywhere. Changelog: https://firebase.google.com/support/release-notes/android#firestore_v24-1-0 |
Hey @edfast, 3.1.13 is using the latest BOM (29.3.1), this is where the BOM is set. |
@russellwheatley thanks for the clarification! Referring to this: https://github.com/firebase/flutterfire/blob/master/packages/cloud_firestore/cloud_firestore/android/build.gradle#L52 FYI: My colleague reached out to the Firebase support and they were able to recreate the issue and are working on a fix. I'll keep you posted if they release a fix. Would really appreciate a fast bump in Firebase core when that happens! :) |
Yes, this is correct.
Perfect, we're very glad to get releases out for any fixes! Let us know 👍. Thanks 😄 |
Hello @russellwheatley! The day has come - a new release of Firebase Android SDK version has been released that should fix the issue! Can you please bump to 30.0.0 in Firebase core? 😄 |
Thanks mate, appreciate the fast response! Is there an ETA for the release? |
@edfast Tomorrrow hopefully, if not, definitely at some point this week 🙏 |
Hi again! I tried updating the BOM version to 30.0.0 in the top-level build.gradle (android/app/build.gradle) and the problem is gone! Is it true that specifying a BOM there overrides the Firebase SDK version declared in Firebase core? I can't figure out if I have FlutterFire in the rootProject in the def below, from cloud_firestore/android/build.gradle.
|
Bug report
I'm working on a Flutter project and have problems with Firestore update. When updating data in nested maps I only get the updated data back, not the whole document. This only happens on Android being offline. This is the issue
From the release notes it seems that this issue has been fixed in Cloud Firestore 24.1.0 so the fix should be included in BoM 29.3.1 which includes Cloud Firestore 24.1.1.
I have also tried to downgrade to 29.0.3 as recommended by @dconeybe in the issue above but can't get rid of the bug.
I declared the BoM in android/app/build.gradle but I've also included the Flutter dependency "cloud_firestore: ^3.1.12" in Pubspec.yaml.
Is there a way to make sure that I'm actually using Cloud Firestore 24.1.1?
Could it be that the Flutter plugin is using another version of Cloud Firestore and overrides the BoM?
Steps to reproduce:
The same steps to reproduce as in this issue
Relevant Code:
Then the snapshot data in the listener only contains the updated value instead of the whole document.
Expected behavior
I expect to receive the whole document with the updated value in the listener and not just the updated attribute.
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: