Ad

Will Firebase Triggers Fire When Running Locally?

- 1 answer

I have a firebase functions project that connects to a firebase database in the cloud. If I write a database trigger in my firebase functions, and I emulate those functions locally, will the trigger fire? I mean, because the database is running on the cloud, does it even know about my locally running trigger?

Ad

Answer

No, the local emulator doesn't work that way. The only way you can trigger a database function with the emulator is through the command prompt you're provided with.

Ad
source: stackoverflow.com
Ad