When the admin sends notifications to all users, they are displayed in a specific window.
I am trying to make it so that the individual user is able to delete the notifications received, but without deleting those of others. Kind of like what happens in an app like Facebook.
I created a relationship with the user collection and added a user update action to the ‘Send Notification’ button where I entered the addition of the new notification in the ‘notifications’ field.
Hi Dave
I think it’s simple, just think backwards.
Add a relationship to users under a new Notifications collection property and call it for example “Deleted by”,
When the user clicks on the notification they want to delete, the action will be : Update Current Notification - Deleted by - add Logged in user.
This way you can filter the list of notifications with Deleted by - does not contain - Logged in user.
Ciao Eugen,
thank you for responding to me.
This step I did, somehow I can get the user to cancel the notification.
The problem is first. I can’t get the notification to save to each individual user’s collection. I set an action to update the user in the notification field…but only to the admin who generates the notification is saved.
Hi @Ali-Bazzi,
thank you for writing, I appreciate it very much.
Here are some pictures of how I configured notification creation and user-notification relationships. I’ve tried different configurations, but I can’t seem to find the solution.
I hope your help will lead me to the final result