Skip to content

Instantly share code, notes, and snippets.

@dlinsin
Created May 29, 2011 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlinsin/997959 to your computer and use it in GitHub Desktop.
Save dlinsin/997959 to your computer and use it in GitHub Desktop.
- (void)application:(UIApplication *)application
didReceiveRemoteNotification:(NSDictionary *)userInfo {
if(application.applicationState == UIApplicationStateActive ) {
DBLog(@"Received: %@", notification.alertBody);
// alert, because app is running in foreground
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment