Hi,
I want to add url in notification to as shortcut links in each successfull transaction, how can I add it?
Thanks,
6 Answer(s)
-
1
See: https://support.aspnetzero.com/QA/Questions/6636#answer-c828655d-d3ec-e417-a2e6-39ec89bca4a8
-
0
hi, Thanks for the reply, in my case I'm using more in C# to call the notifications. Im using the NotificationPublisher to call the notification.
await _notiticationPublisher.PublishAsync("Activities", new MessageNotificationData(message), userIds: userIdentifiers.ToArray());
in the backend c# is it possible to add url?
-
1
Hi, you can construct the URL to be sent in the
new MessageData()
.Then when the notification being received, you can use the URL in the payload.
-
0
-
1
Hi @qualifyme
- Use https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/shared/layout/notifications/UserNotificationHelper.ts#L33 If you are using Angular version
- Use https://github.com/aspnetzero/aspnet-zero-core/blob/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/Common/Scripts/appUserNotificationHelper.js#L22 if you are using jQuery version.
To generate the url for the notification you want.
-
0
thanks @ismcagdas,
thats solves my problem,
more power aspnet zero team!