Firebase allows installing various extensions to further increase functionality. Here is how to add new Firebase features with extensions.
Firebase Extensions is an easy way to enhance Firebase and your app with additional capabilities without having to implement them yourself. They help with sending emails, translating text, resizing images, making payments, and other stuff. The possibilities are huge and it takes only minutes to set up these extensions. Instead of investing hours of development work to integrate 3rd parties into your app, look for an extension and save a lot of time!
I’ll guide you through the setup process and present some of the extensions to you. It will give you an impression of what is possible.
There is an entire marketplace of Firebase extensions at https://extensions.dev/extensions. There are filter options for Firebase products, categories, or providers available. You can also do a text search. But I recommend browsing the catalog to get inspired by the possibilities.
Choose an extension from the catalog like Translate Text and click on Install.
You might be asked to select the desired Firebase project. Afterward, a wizard will guide you through the process.
Set up billing
Information about the basic costs of the extension. You might be required to upgrade your billing plan to use extensions.
Review APIs enabled and resources created
Information about what other services and resources are required by the extension. You might be required to enable additional services in this step.
Review access granted to this extension
Information about access rights needed by the extension.
Configure required settings of the extension
It will take some time until the extension is installed and ready.
To see all installed extensions in your project, go to Build → Extensions in your Firebase console. You can also manage your extensions from this view.
Makes a payment with Google Pay via one or more supported Payment Service Providers, and writes the response to Cloud Firestore.
Composes and sends an email based on the contents of a document written to a specified Cloud Firestore collection.
Sends a message using the Twilio API based on the contents of a document written to a specified Cloud Firestore collection.
Validates an address based on the contents of a document written to a specified Cloud Firestore collection.
Analyze the perceived impact the text of a comment might have on a conversation using Perspective API.
Shortens URLs written to a specified Cloud Firestore collection (uses Bitly).
Translates strings written to a Cloud Firestore collection into multiple languages (uses Cloud Translation API).
Resizes images uploaded to Cloud Storage to a specified size, and optionally keeps or deletes the original image.
Use this extension to optimize and transform images via a powerful HTTP API with over 30 different image operations to enhance and manipulate your images.
In this article, you saw how easy it is to enhance Firebase with new features by installing extensions.
Here are some additional resources about Firebase in case you want to dive deeper into the topic.