Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • EV 36 posts 146 karma points
    Oct 31, 2019 @ 09:09
    EV
    0

    Using notificationService to send notification to the user from backend

    Hello everyone,

    As far as I can tell, the notificationsService can only be used after the user does something (like click on Save).

    Is it possible to use it to send notifications to the user when an event happens instead of after he does something?

    We're planning on implementing our custom chat in the backoffice (for the Users, not the Members), and would like to use the notifications service to send a notification to the user when he has received a new message. We want to do that so he can get a visual cue about the message, like he gets a visual cue after saving something for example.

    Furthermore, we would like to have this notification show up for him wherever he is in the backoffice, or rather regardless in which dashboard of whichever section he is working in.

    Is there any way we can implement this?

    If not, do you have any suggestions on how we can achieve this in another way?

  • EV 36 posts 146 karma points
    Oct 31, 2019 @ 14:11
    EV
    0

    Anyone? :)

  • Trevor Husseini 15 posts 105 karma points
    Feb 06, 2021 @ 03:35
    Trevor Husseini
    0

    Aloha EV,

    Based on my experience with Umbraco v7 and v8 (4+ years), I believe you're on the right track. It's not that you can only use the notification service when a user does something, it's that the notifications themselves have to be associated to a piece of content, specifically an instance of the ContentItemDisplay class. Knowing this, I would reserve the use of this service for the purposes of the user taking an action in the Backoffice.

    With that said, I would suggest looking into other frameworks for your custom chat. I've had some success using this library for relaying transactional information, however, my use-case was different. I integrated it into a custom dotnet Core application that entailed a lot of front-end development.

    I hope this helps! I know you've probably already solved the problem by now but I just happened to stumble upon this as I'm looking for related information for v8.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies