【问题标题】:Firebase Verification Email Template not updatingFirebase 验证电子邮件模板未更新
【发布时间】:2021-06-23 02:00:05
【问题描述】:

我在将 Firebase 验证电子邮件发送到垃圾邮件文件夹时遇到问题,因此我决定更改电子邮件模板,如下所示:

发件人姓名:从“noreply”到“AppName”。 来自:从“noreply@...firebaseapp.com”到“verification@...firebaseapp.com”

但我仍然收到旧的 noreply 电子邮件。任何想法为什么?

我这样发送电子邮件(Swift):

Auth.auth().sendSignInLink(toEmail: emailAddress, actionCodeSettings: actionCodeSettings)

【问题讨论】:

    标签: ios swift firebase firebase-authentication


    【解决方案1】:

    请检查并告诉我你得到了什么。

            let actionCodeSettings = ActionCodeSettings()
            actionCodeSettings.url = URL(string: "firebase url") // firebase url looks like this firebase-productid.firebaseapp.com & firebase product id will find in googleservices-info.plist
            actionCodeSettings.handleCodeInApp = true
            actionCodeSettings.setIOSBundleID(Bundle.main.bundleIdentifier!)
            Auth.auth().sendSignInLink(toEmail:email, actionCodeSettings: actionCodeSettings) { error in
                if error != nil {
                    print(error)
                }
                
            }
    

    【讨论】:

    • 所有这些我都准备好了,我不认为这是客户端配置问题。
    • 你能告诉我你在使用错误块时遇到了什么错误吗?
    猜你喜欢
    • 2018-07-09
    • 2017-06-12
    • 1970-01-01
    • 1970-01-01
    • 2020-11-22
    • 2017-04-19
    • 1970-01-01
    • 2018-12-22
    • 1970-01-01
    相关资源
    最近更新 更多