I am sending the notification messages to the client in component save event through below code.
var message = new NotificationMessage
{
Action = "Save",
SubjectIds = new[] { component.Id.ToString() },
Details = string.Format("Component was updated by {0}", session.AccessToken.Title)
};
session.NotificationsManager.BroadcastNotification(message);
My question is how I can consume the above notifications using GUI using NotificationBroadCaster.js in below location, But It's not very detailed to understand and to make the changes to work.
If your GUI extension communicates with Content Manager, use the Notification Broadcaster (as found in the file %TRIDION_HOME%\web\WebUI\Core\Client\NotificationBroadcaster\NotificationBroadCaster.js)
to catch these notifications
Can you please provide suggestions or solution on this.