Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Digital publishing /

Using Urban Airship as a DPS Push Provider

by Scott Dreier

Scott Dreier

Content

  • How it works
  • System Performance Considerations
  • Installation and Setup
  • Testing
  • Where to go from here

Created

14 December 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
digital publishingDigital Publishing Suite
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

  • Familiarity with Apple Push Notifications
  • Familiarity with Using Apple push notifications with Digital Publishing Suite
  • This article assumes you have access to and can deploy to a web server such as Apache that you have configured to run with PHP and MySQL.

Additional required other products

 

  • Urban Airship development account http://urbanairship.com/
  • PHP 5.2.0 or above (requires ‘json_decode’)
  • MySQL 5.x or above

User level

All

Required products

  • Digital Publishing Suite, Enterprise Edition

Sample files

  • Archive.zip

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.

How it works

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.

Device Registration

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.

Figure 1: Device Registration
Figure 1: Device Registration

Sending Notifications

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.

  1. All registered device tokens are requested from Urban Airship.  Any that are ‘active’ are stored to a database table named ‘devices’.  This table is dropped and created for every new push request.
  2. The message and/or the productId for Newsstand background download are written to the same database and stored in the table ‘notification’.
  3. A cron entry is created.  This entry will call ‘sender.php’ every minute.  Output from this process is logged to ‘/tmp/cron.log’.
  4. The cron process ‘sender.php’ will attempt to send ‘n’ devices (currently ‘n’=400) every time it is invoked.  This will continue every minute until all active devices have been messaged the notification.
  5. Once complete, the cron entry is removed. Specifically, the entire cron table for the owner of the PHP process (e.g. apache, www) is removed.

When a notification sequence is in process (i.e., there are pending devices to be delivered), no new notification is possible.

Figure 2: Device Notification
Figure 2: Device Notification

System Performance Considerations

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 and Setup

Installation is easy…

  1. Unzip the distribution and upload to your web server. The URL to this file “uaproxy.php”, including the filename, should be provided as the "Push URL" when creating the viewer within Viewer Builder. No additional parameters should be provided. Be sure to leave the Use Adobe Push box unchecked.
  2. Configure a MySQL database.
  3. Modify ‘settings.php’ to contain the connection information to MySQL.
    1. ‘$db_host’ – The hostname of the server that is running the MySQL instance (e.g. ‘localhost’).
    2. $db_user – The username for MySQL (e.g. ‘root’)
    3. $db_pass – The password for the above.
    4. ‘db_name’ – The name of the database.  This is up to you.  The distribution uses ‘magazines’, but you can use any.  The tables will be created/dropped as needed.
  4. Modify ‘settings.php’ to contain your account information from Urban Airship.
    1. $user – The “Application Key” from your Urban Airship application.
    2. $pass – The “Application Master Secret” from your Urban Airship application.

Testing

Testing Newsstand downloads with Urban Airship is super easy.

  1. Publish some content as Public.  It can be either free or retail.
  2. Have the user purchase an Apple subscription (again either free or paid) to ensure that they are entitled to the folio.  Alternatively, use direct entitlement.  The only key is that the folio must be in the download state.
  3. View your library.  Is the folio available for download?  If so, then its entitled.
  4. Exit your app so you are looking at the Newsstand.
  5. With ‘index.php’, select ‘Newsstand’ and provide the ‘productId’ for the folio you want to have background downloaded by Newsstand.  It need not be the most recent.
  6. Press send.
  7. Wait a few minutes for the 400 device notifications/minute to cycle through.
  8. You should see the blue sash and the folio is downloaded.
  9. Too easy.

Where to go from here

See the following information on push notifications from Apple:

  • Apple's detailed documentation about its Push Notifications Service
  • Apple's documentation on iOS provisioning
  • Adobe DPS iOS Publishing Companion Guide

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.

More Like This

  • Integrated social sharing with Digital Publishing Suite
  • Add note-taking functionality to a folio
  • Customer-agency DPS workflows
  • Enhance your DPS folios with HTML animations using Adobe Edge
  • Using XML to automate production of digital publications
  • Using Apple push notifications with Digital Publishing Suite
  • Integrate publishing workflows and editorial systems with DPS
  • Distributing enterprise iOS viewer applications with Digital Publishing Suite
  • Targeting the Kindle Fire using Adobe Digital Publishing Suite
  • Build a horizontal swipe storefront with folio preview – Version 1

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement