2013-12-23 2 views

답변

0

는 didReceiveRemoteNotification에서 당신은 키와 개체를 전달할 수 있으며, 그것을 클릭은 서버 측에서 아래

NSLog(@"%@",userInfo); 

    if ([[NSNumber numberWithInt:[[userInfo objectForKey:@"notification_type"] integerValue]] integerValue]==1) { 

     GlobalVariables *global=[GlobalVariables getInstance]; 
     global.NotificationView=1; 

     if (![CommonMethods stringIsEmpty:global.user_id] && ![CommonMethods stringIsEmpty:global.user_name]) { 

      NewsViewController *news=[[NewsViewController alloc] initWithNibName:@"NewsViewController" bundle:nil]; 
      [_controller pushViewController:news animated:YES]; 
     } 
    } 

처럼 관리하는 동안은 곳 선언되지 않은 식별자 '_controller'이

$body['aps'] = array('alert' => $message, 'sound' => $sound); 
$body['notification_type'] = $not_type; 
+0

사용처럼 전달할 수 있습니다 _controller 및 how를 선언 할 수 있습니까? – Michel

관련 문제