Open Closed

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


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)
  • 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

  • 0
    mahendra created

    Thanks ismcagdas,

    But attached link is not working .

  • 0
    musa.demir created
    Support Team

    Sorry @mahendra, we will fix it asap.

  • 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

  • 0
    musa.demir created
    Support Team

    Hi @mahendra Is there any error in log file?

  • 0
    mahendra created

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

    Thanks Ashish

  • 0
    musa.demir created
    Support Team

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