I have this code
var dataRef = firebase.database().ref('offers/');
dataRef.once('value').then(function (snapShoot) {
snapShoot.forEach(function (datum) {
keys = datum.key;
var newdataRef = firebase.database().ref('offers/' + keys + '/users');
newdataRef.on('child_added', function (dataSnap) {
Notify("SOME TEXT");
})
})
})`
and I used on('child_added')
to add a listener at user's point at this data object here
and unfortently this on('child_added')
is working for the first execution with the entire data and act like it's on('value')
how could i make it truly listen only for child addition to this node
Firebase Cloud Functions: PubSub, "res.on is not a function"
TypeError: Cannot read properties of undefined (reading 'createMessageComponentCollector')
In this function I'm trying to check if days of a month are weekends or notFirst I push all days in an array, then I push in another array every item =! 0 or 6, that are weekend days number
This gives me the unexpected identifier error? I have no clue what I am doing wrong here?
I'm looking to show an automated input box from a chrome extension triggered from backgroundjs but not sure how?
We have a user's Facebook id (FB_ID)We want to user that to fire a facebook pixel (given it's AD_ID)