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

Real-time notifications not working when an EntityIdentifier is set #9979


User avatar
0
mahendra created
  • What is your product type (Angular or MVC)?
  • Angular
  • What is product framework type (.net framework or .net core)?
  • .net Core

i Have CHecked the notification with the EntityIdentifier but it is not working,I have added following code in the request

await _notificationPublisher.PublishAsync(AppNotificationNames.NotificationMessageProjectCreated, notificationData
                , entityIdentifier: new Abp.Domain.Entities.EntityIdentifier(typeof(OEProject), (int)OECore.NotifictionModule.Project),
                severity:NotificationSeverity.Info, tenantIds: new[] { user.TenantId }
                );

But not working when i have set EntityIdentifier

it is working fine with the following code

await _notificationPublisher.PublishAsync(AppNotificationNames.NotificationMessageProjectCreated, notificationData
                , tenantIds: new[] { user.TenantId }
                );

i Have Checked also in google https://github.com/aspnetboilerplate/aspnetboilerplate/issues/5230

Refernce of the Table https://aspnetboilerplate.com/Pages/Documents/Notification-System

Thanks Ashish


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

    Hi,

    If you use EntityIdentifier, target users need to subscribe to notifications with this entity. Otherwise, they will not receive any notification. You can check https://aspnetboilerplate.com/Pages/Documents/Notification-System#subscribe-to-notifications

  • User Avatar
    0
    mahendra created

    Thanks ismcagdas,

    But attached link is not working .

  • User Avatar
    0
    musa.demir created

    Sorry @mahendra, we will fix it asap.

  • User Avatar
    0
    mahendra created

    Hi musa.demir ,

    Currently we are using Abp, Version=5.2.0.0. I have implemented the code as per details given in link Still we are facing this Real-time notifications not working when an EntityIdentifier is set.

    Please suggest.

    Thanks Ashish Mohan

  • User Avatar
    0
    musa.demir created

    Hi @mahendra Is there any error in log file?

  • User Avatar
    0
    mahendra created

    Hi @musa.demir I have Checked the log file. I donot found any error in the log.

    Thanks Ashish

  • User Avatar
    0
    musa.demir created

    Thanks @mahendra, We will check and fix it asap.