Below is what I used.
-(BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
if (launchOptions != nil) {
NSMutableDictionary *dic = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey"];
NSMutableDictionary *dicItem = [dic objectForKey:@"aps"];
NSString *itemNotification = [dicItem objectForKey:@"alert"];
// do all transition here....
}else if (launchOptions == nil){
NSLog(@"launch ,,, nil");
}
...//code something
}