I'm trying to receive my last 4 items on my DB (because the last one is the newest item).
task3 = await FirebaseDatabase.DefaultInstance.GetReference("users/").OrderByKey().LimitToLast(4).GetValueAsync().ContinueWith(t => t);
foreach (DataSnapshot s in d.Children)
{ Debug.Log(s.Key);}
This code works fine, I really get my last 4 items,
But then I add a new user to my Users DB from another device and I run the same code above from my first device (Unity Editor) but still get the same 4 items as before without the new one.
The code is correct because if I stop the game on Unity and reset the app, I get the right values.
I can't get the updated values without resetting the app, what am I missing?