How To get the Last Value stored From Firebase Database?

Ok, then we have to sort it on the basis of time?

1 Like

Use the method i munitioned in my post.
How To get the Last Value stored From Firebase Database?

ok, can we do all this by just reversing the list and getting the index 1 and 2?

Yes you can but maybe it’s not ordered.But try it and see if it will work.

1 Like


This Is very lengthy…

Any shorter method?

There is a shorter method if you sorted according to the time only.

1 Like

How to do that?