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