Send In-app bell icon notifications based on scheduled date and role field in Content type

Created on 7 August 2024, 5 months ago

Problem/Motivation

I need to send In-app bell icon notifications based on scheduled date and role field in Content type.
There will be icon on click of it he can see notifications, if there are any new notifications it should show some dot to show he has new notifications.

Steps to reproduce

I have created a content type , I have one field with scheduled date another with roles in the system.
As per the scheduled date and selected role we need to send notifications to user.

Proposed resolution

Please suggest how I can achieve this using this module

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Active

Version

2.3

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • 🇩🇪Germany jurgenhaas Gottmadingen

    This module is not designed to act on a scheduled basis, and it is not designed to send notifications.

    What it does, however, is to create notifications when certain configured events have been dispatched, e.g. a node got updated.

    So, if you have a mechanism, that updates your nodes at a scheduled time, then DANSE will create notifications to the relevant users. There are recipient selection plugins available, that decide which users need to be notified per event. What provided by DANSE out-of-the-box is a simple role-based plugin that notifies all users with a given role(s) about all events.

    When you need a different logic to select recipients, you may have to write your own recipient selection plugin. Or you could use the ECA module which allows for much more sophisticated mechanisms.

    In any event, the notifications that got created per user, are content entities and there is a view that shows all new notifications for each user. You can use that view in a block and use some css to highlight if there is something new for the current user.

Production build 0.71.5 2024