Amazon Simple Notification Service (SNS) | Mobile Push Notifications Flashcards

1
Q

How will raw messages be delivered to HTTP endpoints?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

When raw-formatted messages are delivered to HTTP/s endpoints, the message body will be included in the body of the HTTP POST.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is SNS Mobile Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do I get started sending push notifications?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which push notifications platforms are supported?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many push notifications can I send with the SNS Free Tier?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Does enabling push notifications require any special confirmations with SNS Mobile Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Do I have to modify my client app to use SNS Mobile Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do SNS topics work with Mobile Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What payload size is supported for various target platforms?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do platform-specific payloads work?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Can one token subscribe to multiple topics?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes. Each token can be subscribed to an unlimited number of SNS topics.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is direct addressing? How does it work?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does SNS support direct addressing for SMS or Email?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does SNS Mobile Push handle token feedback from notification services?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can I migrate existing apps to SNS Mobile Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can I monitor my push notifications through Amazon CloudWatch?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes. SNS publishes Cloudwatch metrics for number of messages published, number of successful notifications, number of failed notifications and size of data published. Metrics are available on per application basis. You can access Cloudwatch metrics via AWS Management Console or CloudWatch APIs.

17
Q

What types of Windows Push Notifications does Amazon SNS support?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

SNS supports all types of push notifications types offered by Microsoft WNS and MPNS, including toast, tile, badge and raw notifications. Use the TYPE message attribute to specify which notification type you wish to use. When you use default payloads to send the same message to all mobile platforms, SNS will select toast notifications by default for Windows platforms. It is required to specify a notification type for Windows platforms when you use platform-specific payloads.

18
Q

Does SNS support Windows raw push notifications?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes. You must encode the notification payload as text to send raw notifications via SNS.

19
Q

What is Baidu Cloud Push?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Baidu Cloud Push is a third-party alternative push notifications relay service for Android devices. You can use Baidu Cloud Push to reach Android customers in China, no matter what Android app store those customers choose to use for downloading your app. For more information about Baidu Cloud Push, visit: http://developer.baidu.com/cloud/push.

20
Q

Can I publish Baidu notifications from all public AWS regions?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes, SNS supports Baidu push notifications from all public AWS regions.

21
Q

Can I use Baidu notifications to any Android app store?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes, Baidu push notifications work for apps installed via any Android app store.

22
Q

What are message attributes?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Message attributes allow you to provide structured metadata items (such as timestamps, geospatial data, signatures, and identifiers) about the message. Message attributes are optional and separate from, but sent along with, the message body. This information can be used by the receiver of the message to help decide how to handle the message without having to first process the message body.

You can use SNS message attributes in conjunction with SQS and mobile push endpoints. To learn more about message attributes, please see the SNS Getting Started Guide.

23
Q

What message attributes are supported in SNS?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

SNS supports different message attributes for each endpoint type, depending on what the endpoint types each support themselves.

For SQS endpoints, you can specify up to 10 name-type-value triples per message. Types supported include: String, Binary and Number (including integers, floating point, and doubles).

For mobile push endpoints, you can take advantage of specific message attributes that each mobile platform supports (such as notification type).

24
Q

What is Time to Live (TTL)?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Some messages that you can send with SNS are relevant or valuable only for a limited period of time. Amazon SNS now allows you to set a TTL (Time to Live) value for each message. When the TTL expires for a given message that was not delivered and read by an end user, the message is deleted. TTL is specified in seconds and is relative to the time Publish call is made.

25
Q

How do I specify a TTL for my messages?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

You can specify a TTL using the console or via API. TTL can be specified at publish time for a message, using the message attribute below. There is a different attribute for each platform. An attribute specified for a platform is applicable only for notification deliveries to that platform.

26
Q

What is the default TTL?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

SNS uses a default Time to Live (TTL) of 4 weeks for all mobile platforms.

27
Q

Do TTL message attributes override TTLs specified in a message payload?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes. Google GCM and Amazon ADM allow you to specify a TTL within the message payload. If you specify TTL within the message payload and also within a message attribute, SNS will follow the message attribute.

28
Q

What happens if I specify TTL=0?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Some platforms treat TTL = 0 as a special case and attempt to deliver the message immediately, else let it expire. If you specify TTL = 0, SNS will relay your message to the appropriate service with TTL = 0 in order to take advantage of this special case.

29
Q

What SNS endpoints support TTL?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

You can use TTL with the following mobile push endpoints: APNS, APNS_Sandbox, GCM, ADM, Baidu, and WNS. Microsoft MPNS does not currently support TTL. TTL is also not supported for SQS, HTTP, email or SMS endpoints.

30
Q

What does the Delivery Status feature of Amazon SNS do?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

The Delivery Status feature lets you collect information on success rates, failure rates and dwell times of your push notifications for the supported mobile notification platforms. The currently supported platforms include Apple (APNS), Google (GCM), Windows (WNS and MPNS), Amazon (ADM), and Baidu. The status information is captured in the Amazon CloudWatch log groups created by Amazon SNS on your behalf. Additionally, you can create actionable metrics in Amazon CloudWatch and trigger alarms based on the patterns you are interested in.

31
Q

Is the Delivery Status feature in Amazon SNS available only for mobile push notifications? Do you plan to support this feature for other endpoint types?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Currently the Delivery Status feature is available for mobile push notifications and SMS. We will evaluate extending this to other endpoint types based on feedback from customers.

32
Q

How do I activate the Delivery Status feature?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

You can activate the Delivery Status feature from the Amazon SNS console. From your Application, choose the Delivery Status option in the Application Actions drop-down menu. For details, please read our documentation.

33
Q

Can I activate the Delivery Status feature from the Amazon SNS APIs?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Yes, you can activate this feature from Amazon SNS APIs by adding the relevant application-level attributes. Our documentation goes over the application-level attributes that you need to add and the specific API calls that need to be made to enable this feature.

34
Q

How much does the Delivery Status feature cost?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

There is currently no additional Amazon SNS charge for using the Delivery Status feature. However, depending upon your usage, you may incur charges for using CloudWatch since this feature creates Amazon CloudWatch log groups. Read our pricing page for more information about CloudWatch pricing and free tier.

35
Q

Why can you only choose a sampling percentage for successful delivery attempts and not sample failed delivery attempts?

Mobile Push Notifications

Amazon Simple Notification Service (SNS) | Application Integration

A

Based on feedback we received from customers, we found that most developers are interested in knowing all the delivery attempt failures for their applications – and prefer to only store sample successful deliveries rather than logging all of them.