在Firebase中安排作业 [英] Schedule jobs in Firebase

查看:59
本文介绍了在Firebase中安排作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我假设某人现在已经保留了4:30,并且想要将其保存到服务器并在4:30从服务器通知服务器.

我不想使用智能手机内置的警报系统.

我还观看了YouTube上的Firebase云功能讲座并实施了这些讲座.而且我还看到了CronJobs,它可以按时报警进入URL并执行功能.我必须为用户设置时间并向每个人发出警报.

解决方案

目前尚无直接方法,但是您可以继续创建自定义计划程序以解决此问题.Angularfirebase的人员在以下位置发布了一篇精彩的文章,其中包含逐步说明的内容:

I am assuming that someone has reserved 4:30 now and wants to save it to the server and notify the server from the server at 4:30.

I do not want to use the alarm system built into the smartphone.

I also watched Firebase cloud function lectures on YouTube and implemented them. And I've also seen CronJobs, which gets into the URL by alarm on time and executes the function. I have to set the time for the user and give an alarm to each individual.

解决方案

There is no straight forward way of doing this, but you can go ahead and create a custom scheduler to work around it. A great article with step by step instructions was released by the angularfirebase people at:

https://angularfirebase.com/lessons/scheduled-tasks-and-cron-jobs-with-firebase/

这篇关于在Firebase中安排作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆