Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 789
yxa0007 Avatar asked Aug 01 '18 13:08

yxa0007


1 Answers

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.

like image 199
Renaud Tarnec Avatar answered Nov 15 '22 04:11

Renaud Tarnec