Firebase Action Listener
Last updated
Last updated
Since most of the actions and logic of the plugin's communication with Firebase happens on the Front-end (the user's browser), Bubble has no way, yet, to wait for a front-end action to finish before another starts.
It also does not allow to return values from front-end operations. That's why those actions return no values to a workflow on Bubble.
To mitigate that, plugin developer often use elements as ways to listen to actions and to trigger events on their completion. That's the goal of the Firebase Action Listener: to inform when an action finishes running (e.g. when a new document creation if confirmed) and allow you do do things before that.
The Action Listener element has only one setting, the ID you want to define for it. By defining this ID, and providind the same ID on actions, you link them together so that those actino trigger them.
If you leave the ID blank, the elemet will work as a general listener. When you run an action that also has no trigger ID defined, it will trigger all listeners with blank IDs.
So be carefull with ID management for listener. We suggest to always provide one.
The ID of the last document creation this element was listening for.
The ID of a user created or authenticated by a signup or log in action this element was listening for.
The Email of a user created or authenticated by a signup or log in action this element was listening for.
The ID of the last document update action this element was listening for.
If an error occurs, the error message will be stored on this state.
Triggers when the any of the updated user functions runs, like change email, password or profile.
The last file URL generated by an action.
Triggered when the "" actions runs. The ID of the newly created document will be available on the "" state.
Triggered when the "" actions runs. The ID of the updated document will be available on the "" state.
Triggered when the "" actions runs.
Triggered when list operations like "" or "" runs.
Triggers when the "", "", "" or "" actions create a new user.
Triggers when the "", "", "" or "" actions start a new session for a user that has previously signed up.
Triggers when the "" action finishes running and ends the user's session.
Triggers when the "" action completes an upload. It does not trigger on uploads from elements.
Triggers when a "" action is completed.
Triggers when the any of the update user functions runs (, , or ).
Triggers when a "" action is completed.
Triggers if something went wrong in a front-end action, storing the "" as a state.