Delay Google Cloud Function

后端 未结 4 921
不思量自难忘°
不思量自难忘° 2021-01-23 07:34

I have a swift iPhone application paired with Google Firebase. Within the application the user will complete an action (press a button). At this point, I would like to schedule

4条回答
  •  天命终不由人
    2021-01-23 08:10

    I recently had a similar issue that was solved by using Cloud Scheduler and Firestore. I set up a job that would trigger a cloud function every 5 minutes that would check a Firestore collection. It would retrieve the data on when a cloud function should be triggered and trigger it. It also depends how accurate you want your time triggers to be. It's not optimal to have it trigger all the time for no reason but in my case it worked.

提交回复
热议问题