firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.48k stars 1.43k forks source link

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

Open JarnoRFB opened 1 year ago

JarnoRFB commented 1 year ago

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

google-oss-bot commented 1 year ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

ehsannas commented 1 year ago

Thanks for reporting @JarnoRFB . I'll see if I can reproduce it.

JarnoRFB commented 1 year ago

@ehsannas Are there any updates on this? We observed this problem for other subscriptions as well.

ehsannas commented 1 year ago

Hi @JarnoRFB , Unfortunately we haven't made any progress on this yet. I can't provide a specific timeline for addressing this as we work through features and issues with different priorities.

ehsannas commented 1 year ago

Internally tacked by b/285004638