Menu
AWS Mobile SDK
Xamarin Developer Guide

Amazon Simple Notification Service (SNS)

Using SNS and the AWS Mobile SDK for .NET and Xamarin, you can write applications that can receive mobile push notifications. For information about SNS, see Amazon Simple Notification Service.

Key Concepts

Amazon SNS allows applications and end-users on different devices to receive notifications via Mobile Push notification (Apple, Google and Kindle Fire Devices), HTTP/HTTPS, Email/Email-JSON, SMS or Amazon Simple Queue Service (SQS) queues, or AWS Lambda functions. SNS lets you send individual messages or to fan-out messages to large numbers of recipients subscribed to a single topic.

Topics

A topic is an “access point” for allowing recipients to dynamically subscribe for identical copies of the same notification. One topic can support deliveries to multiple endpoint types -- for example, you can group together iOS, Android and SMS recipients.

Subscriptions

To receive messages published to a topic, you have to subscribe an endpoint to that topic. An endpoint is a mobile app, web server, email address, or an Amazon SQS queue that can receive notification messages from Amazon SNS. Once you subscribe an endpoint to a topic and the subscription is confirmed, the endpoint will receive all messages published to that topic.

Publishing

When you publish to a topic, SNS delivers appropriately formatted copies of your message to each subscriber of that topic. For Mobile Push Notifications, you can publish directly to the endpoint or subscribe the endpoint to a topic.

Project Setup

Prerequisites

To use SNS in your application, you'll need to add the SDK to your project. To do so, follow the instructions in Setting Up the AWS Mobile SDK for .NET and Xamarin.

Set Permissions for SNS

For information on setting permissions for SNS, see Managing Access to Your Amazon SNS Topics.

Add NuGet Package for SNS to Your Project

Follow Step 4 of the instructions in Setting Up the AWS Mobile SDK for .NET and Xamarin to add the Amazon Simple Notification Service NuGet package to your project.

Integrating SNS with Your Application

There are many ways to interact with SNS in your Xamarin application:

Topics