Community Member
ยทBuilding apps with FF

How to create an action, to be triggered into the future?

We are building an app where users can create a post, and set it to be visible at a future date.

The process is:
- User creates the post and sets a date into the future, let's say 1st of May
- The post is being saved in firebase as hidden, to not appear on the user's dashboard yet. It is stored with a Boolean "is_visble" = false
- Based on this, an action is being created, that will stay in the background on standby, until the 1st of May, when it will trigger the Boolean "is_visible" to change to true
- Then, a notification will be generated to inform the user about the new post being visible

Question:
Does anyone know how the action can be created, so that it runs in the background based on the selected future date, so that it can trigger the Boolean to change states once the date is reached?

I'd appreciate any helpful answers ๐Ÿ™‚

4 replies