I am using firestore onSnapshot methods in a React Native app on several different sets of data in my app, and for the most part they all appear to work fine. However, after a period of time, perhaps after the app is put into background and re-awakened, the onSnapshot methods stop updating the data.
It is as if they have switched off. Sometimes they seem to stop working just after a period of time, without the app being backgrounded.
If I call the methods again then they start working again, but that seems to defeat the object of using them, I may as well just use normal get() methods and call them when I need.
Surely someone else has experienced this and can help?
react-native-firebase
library, or justfirebase
? – Algol