You can't run a method in the app when a local notification is received. The notification can provide any combination of an alert, icon badge number, and a sound (<30 secs).
You can run a method when it comes into the foreground again either through the notification or through other means.
When the app is in the background it will call applicationWillEnterForeground:
prior to resuming. You can override this method to handle anything needed after the notification. You can override applicationDidEnterBackground:
to determine when your app actually enters the background.
Method application:didReceiveLocalNotification:
is called when the app receives a notification but is in the foreground. The alert, icon badge number, and sound will not be triggered when the app is in the foreground.