I’m currently building a notification history system using the Recycler extension. My goal is to combine notifications with the same date into a single card (showing both the title and subtitle). If the notification date is different, it should be added to a new card. However, I’m struggling to get the logic working correctly with the blocks I’ve set up.
Here’s the approach I’m using:
I’m storing the notification data in Firebase, where the tag is represented in milliseconds and the data is stored as a list (title, subtitle, etc.).
I want to compare the notification date from the Firebase data and combine titles/subtitles in the same card if the dates match.
Here’s a snapshot of the blocks I’ve tried so far, but I can’t quite figure out how to properly implement the comparison of dates and dynamically create the new cards.
create a tag with today date an save all your title,subtitle in that 1 tag as values
eg…
07/09/2024 { value1,value2…}
App design side
when you get that tag by today date then compare tag’value with today date if both are equal then
create an as followig
1-parent V.arrangemnt
2-lable
3-spacer or margin
4-V-arrangement
5- then create your design in this V-arrangemnt according your choice and use values as text