tags:

views:

29

answers:

2

hi, friends

if u know Apple Push Notification Service,Alert comes through OS when server sends message. if i click view option of that alert ,then where to handle this in code

+1  A: 

You handle the alert in [UIApplication application:didFinishLaunchingWithOptions:]:

- (BOOL)application:(UIApplication *)application
        didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    NSDictionary *notification =
       [launchOptions objectForKey:UIApplicationDidFinishLaunchingNotification];
    if (notification != nil) {
        // handle case of notification
    } else {
        // ...  rest of your logic notification
    }
}
notnoop
A: 

I think, this doesn't work.

neil