Firebase Auth, Firestore & Storage (plugin)
  • 🚀Getting Started
  • Setup
    • Create a Firebase Project
    • Get Firebase access credentials
    • Offline Support
    • Secure your credentials and data
      • Restrict your api-key to your domain
      • Security Rules on Firebase
  • Plugin Elements
    • 🛠️About elements
    • 💾Data Schemas
    • Firebase Auth (Current User)
    • Firestore Data List
      • Firebase Geohash
      • Firestore Data (legacy)
    • Firestore Data Extractor
    • Firestore Data Single
    • Firestore Data Aggregation
    • Firestore Data Processor
    • Firebase Storage Upload Button
    • Firebase Action Listener
    • Firebase Dropdown Processor
  • Plugin Front-end Actions
    • 💻About front-end actions
    • 💾Field types table
    • Firestore
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
      • Batch Operations
        • Batch Operation Constructor
        • Batch Operation Commit
    • Firebase Auth
      • Sign the User Up
      • Log the User In
      • Log the User In with Google
      • Log the User In with Facebook
      • Log the User In with GitHub
      • Log the User Out
      • Update User's Profile
      • Update User's Password
      • Update User's Email
      • Send password reset email
        • Handle reset password code
      • Send verification email
        • Handle verify email code
      • Delete current user
    • Firebase Storage
      • Upload file base64
      • Delete uploaded file
  • Plugin Back-end Actions
    • ☁️About backend actions
    • Firestore Backend
      • Get a list of documents
      • Get a single document
      • Count a list of documents
      • Create a new document
      • Update a document
      • Delete a document
      • Update a list of documents
      • Delete a list of documents
    • Firebase Auth Backend
      • Create an account for someone else
      • Update another user's profile info
      • Delete a user account
      • Generate email confirmation link
      • Generate password reset link
      • Set user roles
Powered by GitBook
On this page
  • Settings
  • States and Values
  • New Document ID
  • User ID
  • User Email
  • Uploaded File URL
  • Updated Document ID
  • Error Message
  • Events
  • Document created
  • Document updated
  • Document deleted
  • List operation finished
  • User signed up
  • User logged in
  • User logged out
  • User updated
  • File uploaded
  • File deleted
  • Batch Operation Committed
  • Error in action
  1. Plugin Elements

Firebase Action Listener

PreviousFirebase Storage Upload ButtonNextFirebase Dropdown Processor

Last updated 11 months ago

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.

This element is crucial for when you need to perform actions in order, like, for instance, when you need to create a document an only then create another, that maybe stores a reference to the one you created earlier.


Settings

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.


States and Values

New Document ID

The ID of the last document creation this element was listening for.

User ID

The ID of a user created or authenticated by a signup or log in action this element was listening for.

User Email

The Email of a user created or authenticated by a signup or log in action this element was listening for.

Uploaded File URL

Updated Document ID

The ID of the last document update action this element was listening for.

Error Message

If an error occurs, the error message will be stored on this state.


Events

Document created

Document updated

Document deleted

List operation finished

User signed up

User logged in

User logged out

User updated

Triggers when the any of the updated user functions runs, like change email, password or profile.

File uploaded

File deleted

Batch Operation Committed

Error in action

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.

Upload File Base64
delete a document
update a list of documents
delete a list of document
Sign the User Up
Log the User in with Google
Log the User in with Facebook
Log the User in with GitHub
Log the User In
Log the User in with Google
Log the User in with Facebook
Log the User in with GitHub
Log the User Out
Upload file base64
Storage Button Uploader
Delete uploaded file
Update User's Profile
Password
Email
Email verification
create a new document
new document id
updated a document
updated document id
Batch operation commit
error message