Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Notifications not firing #1928


User avatar
0
ecairncross created

Hi There,

I'm using the latest framework version(1.0) and trying to get notifications to work, but I'm not getting any response in the client when inserting something like this in my controller:
abp.event.on('abp.notifications.received', function (userNotification) { abp.log.debug(userNotification); });

I have tried using all 3 different publish types from the Documentation(General, user and entity specific), and what I've noticed is that while [AbpUserNotifications] and [AbpTenantNotifications] has new rows when I publish with _notificationPublisher.PublishAsync(...), there is no new entry in [AbpNotifications]. I'm guessing that this has something to do with the problem, but I'm not sure what the solution would be...

Any help would be great! Thanks

_notificationPublisher.PublishAsync(


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Records on the AbpNotifications table are deleted after they inserted to the AbpTenantNotifications and AbpUserNotifications, that is normal.

    In order to get notifications, logged in user must be subscribed the notification you are publishing, can you check that ?