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

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

Open aixaCode opened this issue 2 years ago • 3 comments

[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 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

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

aixaCode avatar Sep 01 '23 16:09 aixaCode

Hi @aixaCode. Thanks for reporting. It looks like the issue is with resolving the host. I'm wondering if there's a DNS issue?

ehsannas avatar Sep 05 '23 18:09 ehsannas

Would you be able to provide a minimal reproduction code?

ehsannas avatar Sep 05 '23 19:09 ehsannas

I will try to prepare something this week.

aixaCode avatar Sep 06 '23 20:09 aixaCode