![]() Review the billing and usage information and select Next: Select the project upgraded with the Blaze plan and you’ll then be directed to the installation page. You’ll then be prompted with choosing which Firebase project you want the extension installed on. Head over to the Firebase Extensions marketplace at, search for the Send Messages with Twilio extension, and click Install in Firebase console: Select your preferred location and then click Enable. You’ll then be prompted to select your Cloud Firestore Collection: ![]() Select Create database and then Next to start the database in production mode. Once you have a Firebase project upgraded to the Blaze plan (as per the prerequisites), navigate to the Firestore Database menu on your Firebase Console: In this section, you’ll set up your Firestore Database and install the Twilio Firebase extension. A Firebase account - Sign up for a free Firebase account here.A Twilio number - Read our docs here on how to obtain a Twilio number.A Twilio account - Sign up with Twilio for free here.Now that you have a better understanding of how the extension works, let’s put it to use! Prerequisites Once a message has been processed and sent, the document will be updated with a delivery field showing the delivery status info. Check out the Create a Message docs for more info. mediaUrls ( Optional) - An array of URLs of media to send with the message.This will override the from number or Messaging Service set in the extension settings. from ( Optional) - The Twilio phone number or Messaging Service you want to use to send the message.to - The phone number or WhatsApp number you want to send the message to, which should be in E.164 format.To send a message, you’ll need to add a document to the specified messages collection with the following format: Message documents collection - The specified Firestore collection that will be used to build and send messages.Twilio Messaging Service Sid ( Optional) - If provided, it will override the Twilio phone number parameter when sending messages. ![]() If none provided, the from value will be used when creating a document (see next paragraph) Twilio phone number ( Optional) - The phone number that will be used to send messages from.Cloud Functions location - For help selecting a location, refer to the location selection guide.This specified Firestore collection will be chosen during installation as a configurable parameter.ĭuring installation, you will provide the following configuration parameters: This extension sends messages (SMS or WhatsApp) based on information on documents added to a specified Cloud Firestore collection. This tutorial will show you how to use the extension to send messages and how to track the delivery status of sent messages. Twilio Lab’s Send Messages Extension on Firebase makes it easy for you to integrate Twilio’s Programmable Messaging API with Firebase applications. One service Firebase provides is Firebase Extensions it provides pre-packaged and open-sourced solutions that help you deploy extended functionality to your application to help automate tasks. If you aren’t familiar with Firebase, it's Google's application development platform that provides essential tools and services to build high-quality apps without worrying over the infrastructure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |