How to show dynamic content with local notifications in Flutter
I’m currently developing an app that sends to the user a local notification every day at a certain time.
The body of the notification is a String
that i randomly pick from a List<String>
. The notification gets successfully created with the random String but I can’t make it random every time.
The workaround that i found was to schedule a notification and with the onNotificationDisplayedListener
re-schedule the same notification the day after with another random String, but obviously it doesn’t work in background.