[英]how to schedule a Firebase Cloud function to run in 5 minutes on a specific firestore document upon creation
[英]Firebase Cloud Function schedule to create document
We have a Flutter project with Firebase setup we would like to create a Firebase cloud function with node js that perform the following:
每个月的 27 日从订阅集合中检查订阅日期。 并在发票集合中创建一个新文档,然后最终发送 email 和 FCM 以及付款 URL。
为此,您需要使用 预定的云 Function 。
更准确地说,您需要:
0 0 27 * *
,即在每月 27 日的 00:00。对于最后 3 点,您需要使用 Admin SDK,因为您在 Cloud Function 中进行编码。 ( Firestore 文档和消息传递文档)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.