Hi All. How exactly notifications work? I guess, it should work with Yes/No settings. But how do you create this? Please explain step by step.
I watched many tutorials but It seems that my case is unique. I’m stuck.
I’ve already created “Read” field in my database with a Yes/No type. I want to display a color shape to the right conversation when the user receive a new message.
One way is to create a new thing “notification” in the database and create a new field on it called “read” which is type yes/no.
Next, create a field on the user and make it type “notification” and check the box for a list.
Add a button to trigger a new notification which creates a new notification in the database and then adds that notification (make a change to a thing, add previous step) onto the user’s list of notifications.
Next you display the user’s notifications list in a repeating group. In the repeating group’s first cell add an element with a condition that anytime the current cell’s user’s notification’s read=no to become visible.
Next you need to figure out how to mark a message as read and there are also lots of options. The most straightforward way is to have a button element on each notification (it needs to be displayed in a repeating group as the user’s notification list) where the user can mark each notification as read. When they press the button, make a change to the current cell’s notification to read=yes
Hopefully that gets you headed in the right direction.