How to update a local variable everyday?

Hey FlutterFlow Community! ๐Ÿ‘‹ I'm nearly at the final stage of deploying my first app to the Play Store and App Store, but I'm encountering a problem. My app is a quote-sharing application where users can share and read quotes across various categories. To complete the app's features, I want to add local notifications, specifically a scheduled notification for everyday use. Fortunately, I've set up the local notification functionality thanks to the FlutterFlow community.

Now, I want users to be able to schedule a notification every day at the exact time of their choice. The user can set up the preferred notification time, click save, and the app should handle the rest, including the notification title and body.

Here's the problem: the notifications are working, but the notification body, which is expected to carry a new quote every day, is displaying the same quote as yesterday and the day before, and so on. I've tried a couple of approaches to address this:

1. I attempted to create an on-load action at the root of the homepage to update a local state variable every 30 or 40 minutes from a created query action that is randomized or grabbed a document at a random index and then using a loop action. I then used this variable as the notification body. Unfortunately, this method didn't work as expected and led to unnecessary computations on the homepage, and the notification body still carried the same quote.

2. Out of desperation, I tried creating the on-load action on the homepage, relying on when the user opens the app to update the variable through a query action. I grabbed a random document from a random index of that list. However, this approach also didn't work.

I'm on the verge of giving up on this feature or even the entire app idea, as I've been stuck on this problem for about a month. Please help me figure out how to solve it. My question is: how can I achieve this kind of functionality, or how can I make the notification body carry a new random quote every day?

Thank you.

3