bodzio
bodzio8mo ago

Send push notification every 24 hours

I need to send a push notification every 24 hours, but for each user the moment from which I count down is different. For example, user 1 performs an action at 11:00, so he gets a notification the next day at 11:00. User 2 performs an action at 12:30, so he gets a notification the next day at 12:30. I know how to do this, but in a not very efficient way i.e. I fetch the right value for each user, check if 24 hours have passed and send a notification. Do you have any idea how to do it more efficiently? So that when there are a few thousand users there is no problem. I am using FlutterFlow with Firebase. Thank you for your help.
2 Replies
Stu
Stu8mo ago
I would set up a firebase document that records the UTC timestamp and the user reference, then every x minutes have a cron schedule run in Buildship to fetch the userRef's (if they exist) and send them a notification via the Flutterflow Push Notifications trigger. This will get you started: https://www.youtube.com/watch?v=lpPpDmYAWe4&t=15s
BuildShip + Rowy
YouTube
Flutterflow Push Notifications made super easy with BuildShip FULL ...
Full step-by-step tutorial on how to send push notifications on FlutterFlow apps with ease. Using BuildShip, Firebase and can be connected to any other databse like Supabase. Get started with BuildShip for free 👉 https://buildship.com Join our discord and chat with us https://discord.com/invite/fjBugmvzZP A Low-code Visual Backend Builder wit...
bodzio
bodzio8mo ago
Thanks.