Notification is not sent to subscribed users
See original GitHub issueI subscribe current user to a specific message:
await _notificationSubscriptionManager.SubscribeAsync(AbpSession.ToUserIdentifier(), HatchConsts.KafkaMessages);
(The table AbpNotificationSubscriptions
has proper value)
but when I publish notifications like this:
wait _notificationPublisher.PublishAsync(HatchConsts.KafkaMessages, notificationData);
(the table AbpNotifications
has proper values)
nothing happens!
but when I publish notification like this:
await _notificationPublisher.PublishAsync(HatchConsts.KafkaMessages, notificationData,userIds:new []{ new UserIdentifier(1 , 1) });
(nothing in AbpUserNotifications
table)
it works!
what is wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Notification is not sent to one particular user
Solved: Hi! I have a problem with a notification that is sent when a case is commented, contact language is not french and...
Read more >Why am I not receiving notification emails? - Azure DevOps
Go to your personal subscriptions and locate the subscription, which you feel should have produced an email.
Read more >Flow run success notifications are not sent to the subscribed ...
Issue. Flow run success notifications are not sent to the subscribed users via Slack. Environment. Tableau Cloud. Resolution.
Read more >Email Subscribers not sending notifications
I am getting subscribers but welcome emails and notifications are not being sent. I have tried this using shortcode and widge…..same result.
Read more >App Store Server Notifications not always sent to my server
We keep a record of all notifications that we receive from the App Store, and for these users we never received the "SUBSCRIBED"...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No, if
tenantIds
is alsonull
, then the message is sent to subscribers of the current tenant — in a background job, the current tenant would also benull
, so the message is sent to subscribers of the host.https://github.com/aspnetboilerplate/aspnetboilerplate/blob/4bfc29aaaab3846962902e0aba86f57a475898f6/src/Abp/Notifications/INotificationPublisher.cs#L29-L44
In a single database approach, you can pass
NotificationPublisher.AllTenants
to send the message to all subscribers:This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.