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
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
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
}
}