14 December 2012
All
Urban Airship provides services for sending Push Notifications to a variety of devices including Apple, Blackberry, Android and Windows. This article describes how to leverage Urban Airship’s resources to send DPS alert notifications and trigger Newsstand downloads to iOS devices.
Visit the Urban Airship site to see more information about Urban Airship's offerings and to sign up for their service.
The connector distributed with this article captures device registrations from your DPS Application and then registers each device with Urban Airship. When sending a push message (either for Newsstand or an Alert), devices are retrieved from your application at Urban Airship, stored in a MySQL database; and then periodically sent back to Urban Airship in chunks.
Upon receipt of a Newsstand notification, a DPS application will immediately contact Adobe’s fulfillment services to begin the download of content (assuming that the device is on Wi-Fi). Since these notifications are quite small, they can be broadcast to a significant number of devices nearly instantaneously. In order to provide adequate service to these devices, this connector will not broadcast all registered devices immediately. Rather, groups of devices are sent periodically (every minute) until all the device notifications have been sent.
Whenever a DPS application is activated (comes to the foreground), it attempts to register it’s device token. Doing this frequently ensures that Apple’s Push Notification Service (APNS) keeps the token fresh and active.
The distribution included within this article will capture device registrations from the DPS application and then register the device at Urban Airship. Along with the device registration, a ‘tag’ is associated with the device type. Current tags are “ipad”, “ipad3”, and “iphone”. Using the push console at Urban Airship OR modifying ‘index.php’, the publisher can choose to send targeted push messages (either Alert or Newsstand) to the specified ‘tag’. For instance, you could message only iPhone devices or provide different messages to iPad3 and iPad2 devices.

This distribution supports 2 types of push notifications – Text Alerts and Newsstand. These are mutually exclusive, but can be sequenced. We block sending both in the same payload because it can cause problems with Newsstand downloads if the user taps an Alert notification which causes the application to open.
When a push notification is requested, the following process is commenced.
When a notification sequence is in process (i.e., there are pending devices to be delivered), no new notification is possible.

Upon receipt of a Newsstand notification, a DPS application will immediately contact Adobe’s fulfillment services to begin the download of content (assuming that the device is on Wi-Fi). Since the notification payload is quite small, many can be broadcast to a significant number of devices nearly instantaneously. Indeed, this is a feature of using Urban Airship’s broadcast API. However, this can generate a number of simultaneous requests for folio downloads that exceeds Adobe’s infrastructure’s ability to accommodate. When this happens, devices will timeout and no background download will happen.
Therefore, the devices notifications are sent to Urban Airship in blocks (currently 400 at a time) every minute.
Please contact your Adobe DPS Enterprise representative before modifying these values.
While there are no such performance implications with sending solely an Alert notification, these are also sent in the same manner for consistency. If you require immediate, broadcast delivery, you can do so via the Urban Airship push console or by making modifications to the distribution.
Installation is easy…
Testing Newsstand downloads with Urban Airship is super easy.
See the following information on push notifications from Apple:
Comments are currently closed as we migrate to a new commenting system. In the interim, please provide any feedback using our feedback form. Thank you for your patience.