Toast and snackbar after closing the app #2326
Replies: 4 comments 2 replies
-
This is not a responsibility of the Snackbar/toast. |
Beta Was this translation helpful? Give feedback.
-
It's a bad thing that there are still basic things in MAUI that can't be implemented, but are already possible with other frameworks. I really wonder what motivated the CommunityToolkit team to implement this toast/snackbar functionality if you can't control the timing? Do you at least think that CommunityToolkit team could do something in this direction? Regards |
Beta Was this translation helpful? Give feedback.
-
I would like to take this opportunity to thank Vlad and all the other team members for their excellent work. There are two reasons why I am asking here:
Regards |
Beta Was this translation helpful? Give feedback.
-
I am happy to refer you to Plugin.LocalNotification, because they have given this a lot of thought. For me personally (but I think also for all other developers) the part with scheduled appointments for displaying Toast/Snackbar would be crucial. This allows you to realize really great things in every possible application. Of course, it is also essential to trigger the display (or opening of the app) of a corresponding data record in the application when you click on the app's toast/snack bar after a few days. I created a topic here: #2327 Regards |
Beta Was this translation helpful? Give feedback.
-
I couldn't find any examples of how to set toast/snackbar with future dates/times (e.g. similar to Plugin.LocalNotification)?
Is that even possible?
Scenario: e.g. you want to set a reminder that should only appear in 5 days. When the application is closed, Toast/Snackbar message appears from the system (Android, iOS or windows) and when the user clicks on it, my app opens. A key can be passed as a parameter, e.g. because you have already stored it when generating the Toast/Snackbar (usually an ID of a database entry, such as scheduling or similar). This is particularly important so that after opening the app (via toast message from the system) the relevant data record is automatically displayed (so that the user knows why the toast message appeared in the first place).
By the way, I am surprised that this was not the primary idea of Toast/Snackbar at CommunityToolkit.Maui, because I can display a message in dozens of different ways via any UI component as well as via HTML/CSSS (but I use MAUI Blazor). Now real toast message with triggered events and parameter passing is tricky and actually what you need in good apps.
Thanks a lot
pc
Beta Was this translation helpful? Give feedback.
All reactions