Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 10, 2013 @ 08:43
    Fuji Kusaka
    0

    Get Notifications on frontEnd

    Hi,

    Has anyone used any kind of push notifications using session cookies? What i would like to do here is everytime i upload a file or any image in the media section, a message appears on the default homepage of the website without having to refresh the page.

    Anyone has an idea or any suggestion on how this can be done ?

     

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Oct 10, 2013 @ 09:41
    David Brendel
    0

    Maybe it's possible to do something like that with SignalR.

    On the Save/Create method of a media item broadcast a message with SingalR and fetch it with js on the frontend.

    That's my first thought about the problem.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Oct 10, 2013 @ 15:05
    Tim
    0

    I'd agree with David that this sounds like something that SignalR would be ideal for. Here's a simple example which is kind of what your after (but not Umbraco specific): http://www.code-magazine.com/articleprint.aspx?quickid=1210071&printmode=true

    Hope that helps!

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 12, 2013 @ 04:57
    Fuji Kusaka
    0

    Thanks Guys,

    The only thing is we have only 20days to deliver the website and we havent used v6.0 yet. I know this is a shame!! :) But were still using v4.11 and would love to move to v6.0 .

    Any other suggestions ?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Oct 14, 2013 @ 10:19
    Tim
    0

    Hiya,

    SignalR isn't dependant on Umbraco, its a third party thing. As far as I know, you can use it with v4.

    The other option would be to write your own rest or /base method that checks for updated things in the media/content library and call it using a Javascript AJAX call that gets fired every so often. IF anything gets returned as being new, you could pop up a message.

Please Sign in or register to post replies

Write your reply to:

Draft