Hello, first of all my compliments for the job done, superb.
I was playing around with notifications, and I've encountered a problem, event not triggered, that beside all my efforts I can't resolve. I hope someone can help me out.
I'm registering for a notification event this way And actually the registration works
But when I give a command, that should trigger the event, nothing works actually. This happens only with app services, instead it works when I use the client trigger.
So this is the chain, I start with a command in client console Where messageSend is a service method that contains this where Message_Received is
to be sure I also added the NotificationProvider and registered it in the Core Module
but nothing happen, not even triggered, I've a breakpoint in the abp file.
Some tip: if I remove the NotificationProvider, the generic event is triggered, but no the specific notificationName.
Any advice?
3 Answer(s)
-
0
-
0
Hi,
You misunderstand some point: In notification system, ABP always trigger "abp.notifications.received". You should resolve notification name from the argument passed into the event. If you need, you can easily write some simple code into "abp.notifications.received" event handler to trigger any event based on the notification name.
-
0
Hi,
thank you for clarification. I was reading this documentation and I interpreted it like it was "automatic" handled. <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Javascript-API/Event-Bus">http://www.aspnetboilerplate.com/Pages/ ... /Event-Bus</a>
Thank you a lot, cheers