简体   繁体   English

在 firebase 云函数 flutter 中发送计划 email

[英]Send schedule email in firebase cloud functions flutter

I have a system built in Flutter.我有一个内置于 Flutter 的系统。 When a user subscribes I want to当用户订阅我想

  • Generate a PDF file ( invoice ) in flutter using Pdf creation library使用Pdf 创建库在 flutter 中生成 PDF 文件(发票)
  • send (monthly) an email with that PDF file发送(每月)一个 email 与该 PDF 文件

1- My question is how to trigger the cloud schedule function 1-我的问题是如何触发云计划 function

  • Date store in cloud firestore that I need to for generating the pdf file生成 pdf 文件所需的云 Firestore 中的日期存储
  • generate the PDF file will be in Flutter生成 PDF 文件将在 Flutter
  • sending scheduled emails will be in the cloud function发送预定的电子邮件将在云端 function

You do not need to trigger them they will run automatically on given time period like cron您不需要触发它们,它们将在给定的时间段内自动运行,如 cron

exports.scheduledFunction = functions.pubsub.schedule('every 5 minutes').onRun((context) => {
  console.log('This will be run every 5 minutes!');
  return null;
});

https://firebase.google.com/docs/functions/schedule-functions https://firebase.google.com/docs/functions/schedule-functions

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当用户使用 firebase 云功能有未读消息/通知时,是否可以向用户发送 email 摘要? - Is there a way to send email digest to a user when they have unread messages/notifications using firebase cloud functions? flutter firebase 云函数模拟器,随叫随到的函数不起作用 - flutter firebase cloud function emulator, on call functions not working 从发送验证邮件接收深度链接 (Flutter / Firebase) - Receive Deep Link from Send Verification Email (Flutter / Firebase) Flutter/Firebase:管理功能是应用内功能还是云功能? - Flutter/Firebase: Admin features in-app or cloud functions? Cloud Functions for Firebase 超时 - Cloud Functions for Firebase timeout Firebase 云 Function 计划创建文档 - Firebase Cloud Function schedule to create document 使用firebase云函数登录 - Sign In using firebase cloud functions 如何使用 Firebase 云函数获取发送到设备的通知的传递状态? - How to get the delivery status of the notification send to Device using Firebase Cloud functions? 在 firebase 云功能中具有 typescript 的 firebase-admin - firebase-admin with typescript in firebase cloud functions 与 firebase 云函数中的 firebase firestore 交互 - Interacting with firebase firestore from firebase cloud functions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM