Base solution for your next web application
Open Closed

Subscribe & publish notification with EntityIdentifier not working #11757


User avatar
0
navcon created
  1. We added notification definition with EntityType. but If we enable entitytype, "AbpNotificationSubscriptions" is not saved. context.Manager.Add( new NotificationDefinition( AppNotificationNames.Publish, displayName: L("Publish"), //entityType: typeof(Library), permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Libraries) ));

  2. Same in AppNotifier.cs, If we add EntityIdentifier , "AbpUserNotifications" is not saved. await _notificationPublisher.PublishAsync(AppNotificationNames.Publish, notificationData, new EntityIdentifier(typeof(Library), Library.Id), tenantIds: tenantIds);

Can you please explain this?


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

    Hi @navcon

    Are there any subscribers to this notification ? You can use any account and subscribe to this notification as explained below and try again.

    https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Features-Mvc-Core-Notifications#notification-settings

  • User Avatar
    0
    navcon created

    Yes the user has subscribed. If We mention Entity Type(but not Entity ID) in subscription, its not getting saved.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, could you create an issue on https://github.com/aspnetzero/aspnet-zero-core/issues, we will take a deeper look into this.

  • User Avatar
    0
    navcon created

    Thank you. Created an issue. https://github.com/aspnetzero/aspnet-zero-core/issues/5050

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks, I have added it to v13 milestone.

  • User Avatar
    0
    navcon created

    Hi Ismail, any update on this?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @navcon

    Sorry for the delay. Upgrading to .NET 8 is just finished and we started to work on this issue. I assume you will get a feedback in 1-2 days.