Sending Standard Push Notifications to Newsstand Apps

How do you send standard push notifications to a Newsstand app? When I say "standard", I mean the typical alert box that pops up with the message.

I am using Urban Airship and have the "content-available" push working fine like so:

 {"aps": 
        {
         "content-available": 1
        }, 
         "device_tokens": ["1234ABCDKKGGOGOGG85986598750870870875708ASD"]
 }

But when I try to send a standard push, the alert never pops and my delegate

application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo 

is not called:

     {"aps": 
        {
         "alert": "Hi, from Urban Airship!"
        }, 
         "device_tokens": ["1234ABCDKKGGOGOGG85986598750870870875708ASD"]
 }

Answers


Forgot to register for the alert (standard) push, which is set by adding the constant UIRemoteNotificationTypeAlert

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeNewsstandContentAvailability | UIRemoteNotificationTypeAlert];

Need Your Help

BDD Automation with Cross Browser Testing?

java selenium-webdriver cucumber-jvm

How do I achieve Cross browser testing using Selenium with any BDD tool which can coded in Java.

boost::archive::binary_(i/o)archive portability

c++ serialization boost binary-serialization

Is a boost binary archive "portable" from one Linux x86_64 machine to another Linux x86_64 machine?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.