Skip to content

Instantly share code, notes, and snippets.

@raoulj
Created June 25, 2019 15:28
Show Gist options
  • Save raoulj/4733284bb2f001a0114a987f29231fbd to your computer and use it in GitHub Desktop.
Save raoulj/4733284bb2f001a0114a987f29231fbd to your computer and use it in GitHub Desktop.
Firebase handler setup
firebase
.database()
.ref('push/' + firebaseUserUid)
.on('child_added', data => {
try {
const dataObj = JSON.parse(data.val());
this._handleObject(dataObj);
} catch (err) {
this._handleErr(err);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment