Hello,

>From a front-end standpoint, I personally like EventSource for this, though 
you could also use websockets or polling (checking every few 
minutes/seconds).

https://developer.mozilla.org/en-US/docs/Web/API/EventSource
http://en.wikipedia.org/wiki/Server-sent_events

Collin

On Tuesday, November 11, 2014 8:12:43 PM UTC-5, Max Nathaniel Ho wrote:
>
> I found this excellent example on Chrome Desktop Notification - Chrome 
> desktop notification example? 
> <http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F2271156%2Fchrome-desktop-notification-example&sa=D&sntz=1&usg=AFQjCNEWGRx6xl4wkT7WpHZcsuH2mh0Atg>
>
> I am able to create the Desktop Notification by clicking a button. 
>
> However, that is pretty front-end. 
>
> I would like to find out how to link an event in the web app. For example, 
>  the event could be someone posting a job for a freelance work. And user 
> who is logged into the web app but not actively browsing on the web page 
> will be notified via the Chrome Desktop Notification. 
>
> Are there any examples of how I can create a Event Handler to listen to 
> data in the backend, and prompt the user via the Desktop Notification?
>
> Many thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c162fe08-81fa-4a25-aa55-30bd2821ce2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to