In my firebase database, I have a "users" node.
I use Firebase Functions for backend functions. My javascript code (node.js) running in Functions needs to do something when a new user is added to database, here is the backend function code:
// required modules
const functions = require('firebase-functions');
const admin = require('firebase-admin');
// my backend function
exports.onUserCreated = functions.auth.user().onCreate(event => {
// Do something when a new user is created
}
I successfully deployed my backend function to firebase Functions.
Then, I manually added a user under users node of firebase database. Then, I go to Firebase Functions, I see the onUserCreated Function listed there in console, but the number of executions is 0.
What could be the reason why my function is not triggered when I manually added a user in database?