Skip to content

Instantly share code, notes, and snippets.

@dlinsin
Created May 18, 2011 07:45
Show Gist options
  • Select an option

  • Save dlinsin/978155 to your computer and use it in GitHub Desktop.

Select an option

Save dlinsin/978155 to your computer and use it in GitHub Desktop.
Check if starting from UILocalNotification
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
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