View Single Post
Old 06-05-2017, 01:54 PM  
tomash999
Confirmed User
 
Industry Role:
Join Date: Sep 2015
Posts: 88
You can implement it yourself or use a platform. The browser notifications that you pointed to, are done in the browser, handling websockets.

There is another option (it is recommended to use both), to send OS X notifications. This will give the users notifications on their screen, even when they are not browsing the site. This will work as long as the tab or window is open (they can use other programs and receive notifications)

In order to send notifications you will need to create events on a web socket server, that will keep those connections open. A simple implementation can be done in few lines using NodeJS (socket io).

Setup example:
* Http server - Web pages
* Websocket server - NodeJS: Listen to messages from the broker, push web notifications
* Background service 1 - Create messages based on user events, push then to the broker.
* [probably not for adult content] Background service 2 - Listen to messages from the broker, push to mobile using Google and Apple endpoints.
* Messaing broker - Redis, Queues etc.

If you don't want to implement it yourself, you can look at 3rd party services. Usually they have API, client libraries and web platform where you can create messages.

But anyway in order to automate it you will need to create the logic yourself.

References (Google it, I can't post URLs):
* Web API
* OS X push notifications
* Socket io
* Redis, Queues
* Heroku elements - They list many of those services under Messaging and Queues
tomash999 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote