Amazon SNS topic subscription confirmation for mobile apps - amazon-web-services

I'd like to understand how amazon SNS confirms endpoint subscription in case of mobile apps.
For SMS, HTTP or email enpoints, we can assume a confirmation SMS, call and email is sent.
But for apps, SNS seems to be managing all notifications through third party services like GCM, APNS etc.
Say I have a GCM client and server ready.
My client wants to subscribe to a topic. How is the confirmation message sent to the device?

Amazon SNS auto-confirms mobile endpoints like GCM, APNs etc. From the Amazon SNS FAQ,
Q: Does enabling push notifications require any special confirmations
with SNS Mobile Push?
No, they do not. End-users opt-in to receive push notifications when
they first run an app, whether or not SNS delivers the push
notifications.

Related

Azure SNS Notifications - Email Subscriptions equivalent in Azure

I want to send notifications via email through Azure function apps. In AWS we have SNS, using boto3 we can send notifications to a particular topic and all the subscribers for that topic will receive notifications. Is there any similar kind of service in Azure that helps to send notifications to topics.

How to respond to SMS from AWS SNS

When I receive an SMS from a friend's mobile phone, I can respond to it (as you would expect). When I receive an SMS from my application, via AWS SNS, I can not respond. Why is that? And can I configure a response phone number?
There is no in-bound SMS capability with Amazon Simple Notification Service. It is only for outbound messaging.
However, Amazon Pinpoint can respond to SMS messages, typically as part of a marketing campaign.
See: Amazon Pinpoint Launches Two-Way Text Messaging | AWS News Blog

Looking for PubSub messaging for end-clients on AWS

Does AWS offer a service for real-time publish&subscribe messaging for end clients? (web, mobile, desktop).
I'm looking for something that is topic based, optionally with a statfull model of data, where clients can subscribe to topics, receive data published on these topics at real time, etc.
(similar to what Google Firebase offers).
Thanks.
Yes. Amazon Simple Notification Service (SNS) provides:
Topic creation
Publishing of messages to the topic
Subscription to a topic via:
Email
HTTP/S endpoint (effectively, a REST call)
SMS
Sending to an Amazon SQS queue
Triggering an AWS Lambda function
Sending mobile notifications (iOS, Android, Baidu, Windows mobile, Windows desktop, Mac desktop)

What is application protocol of SNS subscription?

SNS allows subscriber has the following type of protocols
HTTP/S
Lambda
SQS
Email/JSON
Application
not sure what does Application protocol refers to
and how can I fill in the endpoint
(a example is arn:aws:sns:us-east-1:5555555555:endpoint/ADM/application-name/uuid)
SNS -- the way I see it, conceptually -- is really two different products under one AWS service.
HTTP(S), Lambda, SQS, Email, Email/JSON, and SMS (you forgot SMS)
Mobile push notifications (that's "application" -- mobile apps)
For the application protocol, the endpoint is the EndpointArn of a mobile app and device.
http://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html
Unless you are sending a mobile push notification, you don't publish to an EndpointArn. You publish to a TopicArn.
For everything other than mobile push (https, email, sqs, etc.), when you send a message to a topic, it goes to all of the subscribers to the topic. The individual subscribers aren't individually-addressable (unless there's been a big change that I managed to miss; I welcome correction if that is the case).
With mobile push, you can send messages singly to individually-addressable endpoints (EndpointArn) or to all of the endpoints subscribed to a topic.

SMS from amazon service to user's mobile number

Can we send a SMS to a mobile number through amazon service? I need to send a plain message and not notifications.
No.
Amazon Simple Notification Service (SNS) can't send SMS messages to recipients who have not opted-in to receive topic notifications.
The SMS capability in SNS is limited to users who respond affirmatively to the initial message requesting that they confirm their subscription to a topic -- for notifications.