firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.46k stars 3.91k forks source link

[FIRESTORE]: includeMetadataChanges does not make the stream emit second non cache event #12781

Open jtdLab opened 2 weeks ago

jtdLab commented 2 weeks ago

Is there an existing issue for this?

Which plugins are affected?

Database

Which platforms are affected?

No response

Description

When listening for data like this (with internet connection):

doc.snapshots(includeMetadataChanges: true)

There is only a snapshot with metadata.isFromCache = true fired but no second with metadata.isFromCache = false as stated in https://firebase.google.com/docs/reference/js/v8/firebase.firestore.SnapshotMetadata

Reproducing the issue

Listen to a document as described.

Firebase Core version

2.31.0

Flutter Version

3.22.0

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
```yaml Replace this line with the contents of your `flutter pub deps -- --style=compact`. ```

Additional context and comments

No response

TarekkMA commented 2 weeks ago

@jtdLab, thank you for reporting this issue. Could you please provide additional details about which platform you have tested on and where you found this bug? This information will help us better understand and address the issue.

google-oss-bot commented 1 week ago

Hey @jtdLab. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!