Set Firestore Data in Background

Hello,
My app is based on users competing against each other each week. At the end of each week, I want the winners and losers to automatically be uploaded in Firestore, so that users can see the winners and losers from the previous week without everyone having to open their app. Is there a way to run this function in the background so that at a specific time every week, this data is uploaded to Firestore?
Thanks!

Hey Michael!

You could store their data in Firestore every time they play, and then have a Firebase Cloud function that gets all the data and see who’s a winner/loser at a specified time

Thanks for the response. I am trying to do that, but I cannot find any good tutorials on how to use Firebase Cloud Function very well. I’ll keep trying, but if you have suggestions, I am all ears.

Thank you!

I’ve never used them, but overall Firebase’s documentation pretty good