Search code examples
firebasefirebase-realtime-databasescheduled-tasksschedulingreal-time-data

Scheduling change value in FireBase


In my Firebase Real Time Database I have a variable whose value is "false". Is it possible to create a schedule in Firebase so that at certains times and days it turns "true" and viceversa?

I know I could do this by App, but I would like to know if it is possible to do this directly from Firebase.

Thank You.


Solution

  • Nothing is built into the Realtime Database itself for that, but it is a very common use case for using Cloud Functions. Have a look at the documentation on running code on a schedule for more information.

    Also see: