I want to perform some action when the user taps on the notification message in the iOS notification centre. I know the method
-(void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif is called when I touch the notification, but it is also called when a notification is just received and not tapped. I want a way to distinguish between two.
I couldn't find any useful solution specific to this anywhere so please help me out. Thanks.