I use the firebase-js-sdk (in a Vue PWA) to listen for realtime updates from Firestore.
To restore the app after it was in background i use „vuex-persist“ for the app state. Beside the app state i also need to reestablish the realtime query by calling .onSnapshot on the same collection with the same parameters.
I wonder if the firebase-js-sdk is able to reuse the realtime query, which was requested before the app went to background. Otherwise i will be charged every time the user switches to background and back.
Thanks for any help, Thomas