Firebase Realtime Database Wont get Task Complete

22 views
Skip to first unread message

http....@gmail.com

unread,
Jan 25, 2021, 5:05:37 AM1/25/21
to Firebase Google Group
FirebaseUID = gameObject.GetComponent<SignInOnClick>().FirebaseUID;
        FirebaseDatabase.DefaultInstance
      .GetReference("users").Child(FirebaseUID).Child(platform)
      .GetValueAsync().ContinueWith(task => {
          if (task.IsFaulted)
          {
              // Handle the error...
              Debug.LogError("Handle the error...");
          }
          else if (task.IsCompleted)
          {
              DataSnapshot snapshot = task.Result;
              Debug.LogError("snapshot ");
              Debug.LogError("IsCompleted ");
              // Do something with snapshot...
          }
      });

I'm trying this basic task but I cant get any of the  task.. any idea? also trying to use handle but still wont sync 
Reply all
Reply to author
Forward
0 new messages