3
votes

I have a web application and I want to send Push Notifications using AWS. I don't understand which AWS service I could use to send push notifications to web applications. It looks like AWS SNS service couldn't do that. But I can't find any examples. Tell me please what service to use?

3
SNS can point at a https url and send to it. Also there is this developer.amazon.com/device-messaging and this docs.aws.amazon.com/pinpoint/latest/userguide/… - Vorsprung

3 Answers

1
votes

1 - You can use SNS to send http requests to Web Applications Endpoints;

2 - You can use AWS IoT to send notifications over WebSockets if you're looking for a "real time" front-end updates.

This my help you to get started with AWS IoT: http://gettechtalent.com/blog/tutorial-real-time-frontend-updates-with-react-serverless-and-websockets-on-aws-iot.html

SNS: http://docs.aws.amazon.com/sns/latest/dg/SendMessageToHttp.html

0
votes

You can trigger Web Push Notifications from SNS but there is more to it then just publishing a message. You need to configure VAPID keys, request user permission and save subscription on server-side.

You can read detailed guide here: How to Send Web Push Notifications for Free with AWS and without Firebase