javascript - How to listen for data changes at more than a particular location in Firebase? -
i using firebase real-time db mobile app i'm developing (js web sdk), structure below in screenshot, key = email, each key have mobile user information, , gps coordination of mobile location inside node = "path"
how listen on the "path" of emails (users)?
straight firebase documents:
value: read , listen changes entire contents of path.
var ref = firebase.database().ref("users"); firebase.database().ref().on('value', function(snapshot) { // whatever });
this function run once when initiated , once more every change data under path. snapshot
return contents of user/
lot of data returned every change. can change ref
accordingly.
Comments
Post a Comment