There are two scenarios for processing local notifications,
1. The application starts due to a local notification click
-(BOOL)application:(UIApplication *)app didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UILocalNotification *localNotif = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey]; if (localNotif) {
2. The application is active , then add this code to AppDelegate
-(void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
source share