且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase检测电子邮件验证

更新时间:2023-12-01 18:12:40

好吧,我要做的是,每次启动应用程序时,我都会向用户对象查询其验证状态;如果未验证,我会立即在此处发送验证请求,如果之前未发送过,并且是第一次,那么我会显示一些感谢文本,然后继续.我不认为当用户单击电子邮件中的链接时可以收到实际的通知,但是您可以构建一个管理节点功能服务器端来不时检查并发送推送到相关设备

Well, what I do is, each app launch I query the user object for its verification status; if it's not verified I send a verif request right there, if not sent before, and if it is and it's the first time, I show some thank you text and move on. I don't think there's an actual notification you can hook with for when the user clicks the link in the email, but alternatively you could build an admin node function server side to check every now and then for verifications and send pushes to the relevant devices.