I have a node in Firebase getting continually updated with information from a logfile. The node is lines/
and each child of lines/
is from a
I think there is a problem in @David East's solution. He is using the local timestamp which may cause problem if the time is not accurate in client device. Here is my suggested solution (iOS Swift):
observeSingleEvent
to get the complete data setreversed()
data[0].timestamp
Using queryStarting
for timestamp
self._dbref.queryOrdered(byChild: "timestamp").queryStarting(atValue: timestamp+1)
.observe(.childAdded, with: {
snapshot in
print(snapshot.value)
})