firebase / firebase-unity-sdk

The Firebase SDK for Unity
http://firebase.google.com
Apache License 2.0
201 stars 34 forks source link

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

Open aixaCode opened 10 months ago

aixaCode commented 10 months ago

[REQUIRED] Please fill in the following fields:

[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
ehsannas commented 10 months ago

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 commented 10 months ago

Would you be able to provide a minimal reproduction code?

aixaCode commented 10 months ago

I will try to prepare something this week.