与Cron Job一起安排Firebase中的推送通知

发布于 2025-02-11 08:42:59 字数 128 浏览 1 评论 0原文

我正在建立一个约会预订应用程序,我正在使用FCM处理推送通知, 所以我想知道是否有办法安排推送通知 例如;

当医生预约时间时,应告知患者几分钟到约会时间。 我已经阅读了有关Cron工作的信息,但我不确定如何将其安排到动态的时间。

I am building an appointment booking app, I'm using FCM to handle push notifications,
so I am wondering if there is a way to schedule push notifications
For example;

When the doctor gives an appointment time, the patient should be notified few minutes to the appointment time.
I've read about cron job but I'm not sure on how to schedule it to a dynamic time.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

很酷不放纵 2025-02-18 08:42:59

您可以以固定的间隔运行计划的任务(每分钟每分钟)然后发送过去/下分钟的所有消息,或者您可以自己使用云任务安排任务(然后是http云功能)自己要么自己(如道格(Doug)所解释的在此文档

此主题之前已经介绍了好几次,所以我建议您还查看:

You can either run a scheduled task at a fixed interval (say every minute) and then send all messages for the past/next minute, or you can use Cloud Tasks to schedule the task (which is then a HTTP Cloud Function) either yourself (as Doug explained here) oras shown in this documentation.

This topic has been covered quite a few times before, so I recommend also checking out:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文