Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Firebase issues unity

Discussion in 'General Discussion' started by kpatulrpatel, Jul 31, 2020.

  1. kpatulrpatel

    kpatulrpatel

    Joined:
    Mar 13, 2017
    Posts:
    7
    Hi Team,
    I'm trying to FirebaseRealtimeDatabase.
    StartFirebase <== ProperWork
    StartListener <== ProperWork
    RemoveListener <== NotProperWork

    Solution :
    private void OnDisable()
    {

    Firebase.FirebaseDatabase.DefaultInstance.GetReference("users").ValueChanged - = HandleValueChanged_Test;//NotProperWork

    DatabaseReference.GoOffline();//It'sWork
    }
    My Solution is right or wrong?
    Any idea?
     
unityunity