react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

[🐛] @react-native-firebase/firestore data read issue

Open ParthWebiots opened this issue 5 months ago • 6 comments

@react-native-firebase/firestore data read issue

React Native version: 0.77.1 @react-native-firebase/firestore version: 21.11.0 Device: Android

Note:- also i'll check 21.14.0 (not worke)

#Debug APK # -> Works fine for a few minutes after opening the app -> After some time, it stops reading data in real-time -> Need to refresh or reopen the app to read data again

#forRelease # -> When the app is opened, any Firestore data updates are not read in real-time -> To see updates, the app needs to be closed and reopened -> If the app is closed and new data is added to Firestore, then after opening the app, the data is read correctly -> Manually fetching data via a button works immediately

#Problem Summary# -> Real-time updates work initially or with manual fetch, but automatic real-time listeners stop updating after some time in debug, and do not update at all in release builds

ParthWebiots avatar Aug 22 '25 04:08 ParthWebiots

Can you please use the latest version 23.3.1 and tell me if the issue persists?

MichaelVerdon avatar Sep 09 '25 08:09 MichaelVerdon

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Oct 07 '25 09:10 github-actions[bot]

Opening this again as we currently facing same critical issue with firebase/firestore reading data in Android in release mode only

3abdawy avatar Nov 11 '25 13:11 3abdawy

@MichaelVerdon is there any update about it ?

3abdawy avatar Nov 11 '25 13:11 3abdawy

@3abdawy some thoughts -

1- the original issue is on versions that are now quite updated, please ensure you are using up to date versions of everything and confirm same with contents of package.json dependencies block, 2- this is likely related to aggressive power-saving on device (see https://dontkillmyapp.com/ - and confirm what devices you reproduce this on as well their power-saving settings), 3- we don't have a good reproduction for this, but an improvement we have made recently is how we handle manual testing, it is now possible to add manual tests pretty easily, and we can then work to reproduce it. Can you do so by proposing a PR with a test that reproduces it for you, here?

  • where to include a new test https://github.com/invertase/react-native-firebase/blob/0785f1bb78de25f309d5df9cf521868ae6d21315/tests/local-tests/index.js#L32
  • make a test similar to https://github.com/invertase/react-native-firebase/blob/main/tests/local-tests/firestore/onSnapshotInSync.js

mikehardy avatar Nov 11 '25 15:11 mikehardy

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Dec 09 '25 15:12 github-actions[bot]