Amazon Simple Notification Service (SNS) | Mobile Push Notifications Flashcards
How will raw messages be delivered to HTTP endpoints?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
When raw-formatted messages are delivered to HTTP/s endpoints, the message body will be included in the body of the HTTP POST.
What is SNS Mobile Push?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
SNS Mobile Push lets you use Simple Notification Service (SNS) to deliver push notifications to Apple, Google, Fire OS, and Windows devices, as well as Android devices in China with Baidu Cloud Push. With push notifications, an installed mobile application can notify its users immediately by popping a notification about an event, without opening the application. For example, if you install a sports app and enable push notifications, the app can send you the latest score of your favorite team even if the app isn’t running. The notification appears on your device, and when you acknowledge it, the app launches to display more information. Users’ experiences are similar to receiving an SMS, but with enhanced functionality and at a fraction of the cost.
How do I get started sending push notifications?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Push notifications can only be sent to devices that have your app installed, and whose users have opted in to receive them. SNS Mobile Push does not require explicit opt-in for sending push notifications, but iOS, Android and Kindle Fire operating systems do require it. In order to send push notifications with SNS, you must also register your app and each installed device with SNS. For more information, see Using Amazon SNS Mobile Push Notifications.
Which push notifications platforms are supported?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Currently, the following push notifications platforms are supported:
Amazon Device Messaging (ADM)
Apple Push Notification Service (APNS)
Google Cloud Messaging (GCM)
Windows Push Notification Service (WNS) for Windows 8+ and Windows Phone 8.1+
Microsoft Push Notification Service (MPNS) for Windows Phone 7+
Baidu Cloud Push for Android devices in China
How many push notifications can I send with the SNS Free Tier?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
The SNS free tier includes 1 million publishes, plus 1 million mobile push deliveries. So you can send 1 million free push notifications every month. Notifications to all mobile push endpoints are all counted together toward your 1 million free mobile push deliveries.
Does enabling push notifications require any special confirmations with SNS Mobile Push?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
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.
Do I have to modify my client app to use SNS Mobile Push?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
SNS does not require you to modify your client app. Baidu Cloud Push requires Baidu-specific components to be added to your client code in order to work properly, whether or not you choose to use SNS.
How do SNS topics work with Mobile Push?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
SNS topics can have subscribers from any supported push notifications platform, as well as any other endpoint type such as SMS or email. When you publish a notification to a topic, SNS will send identical copies of that message to each endpoint subscribed to the topic. If you use platform-specific payloads to define the exact payload sent to each push platform, the publish will fail if it exceeds the maximum payload size imposed by the relevant push notifications platform.
What payload size is supported for various target platforms?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
SNS will support maximum payload size that is supported by the underlying native platform. Customers can use a JSON object to send platform specific messages. See Using SNS Mobile Push API for additional details.
How do platform-specific payloads work?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
When you publish to a topic and want to have customized messages sent to endpoints for the different push notification platforms then you need to select “Use different message body for different protocols” option on the Publish dialog box and then update the messages. You can use platform-specific payloads to specify the exact API string that is relayed to each push notifications service. For example, you can use platform-specific payloads to manipulate the badge count of your iOS application via APNS. For more information, see Using Amazon SNS Mobile Push Notifications.
Can one token subscribe to multiple topics?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Yes. Each token can be subscribed to an unlimited number of SNS topics.
What is direct addressing? How does it work?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Direct addressing allows you to deliver notifications directly to a single endpoint, rather than sending identical messages to all subscribers of a topic. This is useful if you want to deliver precisely targeted messages to each recipient. When you register device tokens with SNS, SNS creates an endpoint that corresponds to the token. You can publish to the token endpoint just as you would publish to a topic. You can direct publish either the text of your notification, or a platform-specific payload that takes advantage of platform-specific features such as updating the badge count of your app. Direct addressing is currently only available for push notifications endpoints.
Does SNS support direct addressing for SMS or Email?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
At this time, direct addressing is only supported for mobile push endpoints (APNS, GCM, ADM, WNS, MPNS, Baidu) and SMS. Email messaging requires the use of topics.
How does SNS Mobile Push handle token feedback from notification services?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Push notification services such as APNS and GCM provide feedback on tokens which may have expired or may have been replaced by new tokens. If either APNS or GCM reports that a particular token has either expired or is invalid, SNS automatically “disables” the application endpoint associated with the token, and notifies you of this change via an event.GCM specifically, at times not only indicates that a token is invalid, but also provides the new token associated with the application endpoint in its response to SNS. When this happens, SNS automatically updates the associated endpoint with the new token value, leaving the endpoint enabled, and then notifies you of this change via an event.
Can I migrate existing apps to SNS Mobile Push?
Mobile Push Notifications
Amazon Simple Notification Service (SNS) | Application Integration
Yes. You can perform a bulk upload of existing device tokens to Amazon SNS, either via the console interface or API. You would also register your app with SNS by uploading your credentials for the relevant push notifications services, and configure your proxy or app to register future new tokens with SNS.