How to use scheduler for Firebase Cloud Functions with Realtime Database/Analytics triggers?

后端 未结 1 1603
暖寄归人
暖寄归人 2020-12-11 12:39

I\'m working on a Firebase Cloud Function, to send triggered push notifications. Right now my function sends a push as soon as an user triggers the \"IAP\" event in my app.<

相关标签:
1条回答
  • 2020-12-11 13:27

    There is no built-in way to retrigger Cloud Functions with a delay. If you want such functionality you will have to build that yourself, for example by scheduling a function to run periodically and then see what tasks need to be triggered. See my answer here: Delay Google Cloud Function

    As Doug commented, you can use Cloud Tasks to schedule individual invocations. You'd dynamically create the task, and then have it call a HTTP function.

    0 讨论(0)
提交回复
热议问题