yxa0007
yxa0007

Reputation: 155

Is it possible to send a text message from firebase to a phone number?

I want my firebase to send a text message to my app (which is coded in flutter). Can the firebase send SMS using the server?

Upvotes: 9

Views: 13766

Answers (1)

Renaud Tarnec
Renaud Tarnec

Reputation: 83093

You can use the Twilio third-party service in a Cloud Function.

Have a look at these docs:

https://cloud.google.com/appengine/docs/flexible/nodejs/using-sms-and-voice-services-via-twilio

https://cloud.google.com/community/tutorials/cloud-functions-twilio-sms (which shows how to integrate Twilio in a Cloud Function)

The Firebase Cloud Functions documentation is here: https://firebase.google.com/docs/functions/

Note that you will have to subscribe to a Blaze or Flame plan, because "the Spark plan allows outbound network requests only to Google-owned services". Check https://firebase.google.com/pricing/ and hover over the question mark next to Cloud Functions for more details.

Upvotes: 5

Related Questions