【问题标题】:Is it possible to send a text message from firebase to a phone number?是否可以从 firebase 向电话号码发送短信?
【发布时间】:2019-01-09 02:54:29
【问题描述】:

我希望我的 firebase 向我的应用程序(以颤振编码)发送短信。 firebase 可以使用服务器发送短信吗?

【问题讨论】:

    标签: firebase firebase-realtime-database sms twilio flutter


    【解决方案1】:

    您可以在 Cloud Function 中使用 Twilio 第三方服务。

    看看这些文档:

    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(展示了如何将 Twilio 集成到云函数中)

    Firebase Cloud Functions 文档位于:https://firebase.google.com/docs/functions/

    请注意,您必须订阅 Blaze 或 Flame 计划,因为“Spark 计划仅允许对 Google 拥有的服务的出站网络请求”。查看https://firebase.google.com/pricing/ 并将鼠标悬停在 Cloud Functions 旁边的问号上以了解更多详细信息。

    【讨论】:

    • 好的,但是对于 Twilio,我必须创建一个新应用程序,有没有办法可以将 twilio 与我现有的用 Flutter 编码的应用程序一起使用
    • 是的,您应该在云函数中使用它,该函数在后端执行,在 Google/Firebase 的云中的托管环境中。见firebase.google.com/docs/functions
    猜你喜欢
    • 2023-04-02
    • 1970-01-01
    • 2019-03-05
    • 1970-01-01
    • 2017-01-30
    • 2013-12-04
    • 2015-01-04
    • 1970-01-01
    相关资源
    最近更新 更多