Base solution for your next web application
Open Closed

How can we add URL in notifications using backend c#? #7492


User avatar
0
qualifyme created

Hi,

I want to add url in notification to as shortcut links in each successfull transaction, how can I add it?

Thanks,

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

6 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    See: https://support.aspnetzero.com/QA/Questions/6636#answer-c828655d-d3ec-e417-a2e6-39ec89bca4a8

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    qualifyme created

    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?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    1
    ryancyq created
    Support Team

    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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    qualifyme created

    thanks for the reply, I tried to add the URL in the message but it seems the notification read it as text. and its not clickable, I tried to modified in the menu html, I don't know what kind of script are being used in the menus,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    1
    ismcagdas created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    qualifyme created

    thanks @ismcagdas,

    thats solves my problem,

    more power aspnet zero team!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)