firebase / firebase/firebase-unity-sdk

[Bug] Android very slow on reconnection to firestore after being backgrounded

Open
#852 3 comments 0 reactions 0 assignees View on GitHub
api: firestore type: question
Dominant language
C#
Stars
320
Forks
60
Avg merge
11h 15m
Merged PRs (30d)
11

Description

### [REQUIRED] Please fill in the following fields:

* Unity editor version: 2022.3.6f1
* Firebase Unity SDK version: 11.4.0
* Source you installed the SDK: .unitypackage
* Problematic Firebase Component: Firestore Database
* Other Firebase Components in use: Auth, Crashlytics, Dynamic Links, Remote Config
* Additional SDKs you are using: Facebook
* Platform you are using the Unity editor on: Windows
* Platform you are targeting: iOS, Android
* Scripting Runtime:IL2CPP
* Pre-built SDK from the [website](https://firebase.google.com/download/unity) or open-source from this repo: website

### [REQUIRED] Please describe the issue here:

When the app is put into background for longer period of time, over 15 minutes, and brought back, on the reconnection to firebase that app is stuck. After around 5 minutes the app is able to recover. This is a major issue, as it affects the startup of the app. This is only happening on Android.

#### Steps to reproduce:

Repro rate: 100%

1. Put the app into background.
2. Wait 20 minutes
3. Bring it back to foreground.
4. Notice the warnings in the console
![Screenshot 2023-09-01 172003](https://github.com/firebase/firebase-unity-sdk/assets/7305682/f58211ec-47ea-4b08-a1f4-cb5789923685)

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

#### Relevant Code:

```
// TODO(you): code here to reproduce the problem
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.