Skip to content

Instantly share code, notes, and snippets.

@jtowle
Created August 26, 2011 18:15
Show Gist options
  • Save jtowle/1174030 to your computer and use it in GitHub Desktop.
Save jtowle/1174030 to your computer and use it in GitHub Desktop.
Newsstand App Delegate's Push Arrived Handler
// Copy and paste this method into your AppDelegate to recieve push
// notifications for your application while the app is running.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
UALOG(@"did receive remote notification: %@", userInfo);
[[UAirship shared].analytics handleNotification:userInfo];
[newsstand handleNewsstandPushInfo:userInfo];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment