firebase-ios-sdk icon indicating copy to clipboard operation
firebase-ios-sdk copied to clipboard

Firestore listeners seem to die when app is moved to background for too long

Open JarnoRFB opened this issue 2 years ago • 5 comments

Description

Our app is kind of an iPad based cash register that is only used during the day. During the night, the screen is locked but the devices stay on. On the next day some customers report outdated data that only refreshes once the app is restarted. Similar problems have been reported on StackOverflow, for Android and Flutter so I assume that the same could be true for iOS.

Reproducing the issue

The issue is currently hard to reproduce, as it only seems to happen after going to the background for a long time.

Firebase SDK Version

9.6

Xcode Version

14.2

Installation Method

Swift Package Manager

Firebase Product(s)

Firestore

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

No response

JarnoRFB avatar Feb 21 '23 14:02 JarnoRFB