firebase / firebase/firebase-ios-sdk
Firestore listeners seem to die when app is moved to background for too long
- Dominant language
- C++
- Stars
- 6.7k
- Forks
- 1.8k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 75
Description
### 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](https://stackoverflow.com/questions/64196357/firestore-listener-killed-when-app-goes-in-background-for-a-long-time), for [Android](https://github.com/firebase/firebase-android-sdk/issues/2637) and [Flutter](https://github.com/firebase/flutterfire/issues/4305) 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_
Contributor guide
Assessment
This issue has not been assessed yet.