- 
                Notifications
    You must be signed in to change notification settings 
- Fork 444
Closed
Labels
Description
[REQUIRED] Please fill in the following fields:
- Unity editor version: 2020.1.8f1
- Firebase Unity SDK version: 6.16.0
- Source you installed the SDK: Unity Package Manager
- Problematic Firebase Component: Firestore
- Other Firebase Components in use: Auth, Functions
- Additional SDKs you are using: none
- Platform you are using the Unity editor on: Windows
- Platform you are targeting: Android, iOS
- Scripting Runtime: IL2CPP
[REQUIRED] Please describe the issue here:
When listening for changes on a collection or a document in any part of a script, Editor get stuck on Application.Reload state after recompiling or when entering play mode.
Steps to reproduce:
- Add a document or collection listener with ref.Listen() in any part of a monobehaviour script.
- Return to the Editor and wait for compilation
- Try to enter play mode
- Editor get stuck on Application.Reload state and is unusable.
Appens 100% of the time. If not listener is set, everything is ok.
Relevant Code:
Example class:
using Firebase.Firestore;
using UnityEngine;
public class TestListenFirebase : MonoBehaviour
{
    void Start()
    {
        var db = FirebaseFirestore.DefaultInstance;
        CollectionReference col = db.Collection("users");
        col.Listen(snapshot =>
        {
            Debug.Log("Listening...");
        });
    }
}
