0

i work on a android game and i set lucky wheel and user can only spin it 5 time per day, after 24 hour it should be reset to 5 again ( for prevent cheating i want to do it with Firebase rule

so i want to make a rule in Firebase to change a "spin left" field for all user , every 24 hour (00:00 GMT should change field for all user)

would you please help me with that?

what i tried? i don't know how to make my own rules and i am in hurry unfortunately

  • 2
    If you mean Firebase's security rules, there is no way for them to modify the data. If you want to run a periodic task on your database, have a look at Cloud Functions or Cloud Run, which can do so. E.g. [Running functions on a schedule](https://firebase.google.com/docs/functions/schedule-functions) – Frank van Puffelen Dec 10 '22 at 15:25

0 Answers0