title: Open a view controller when a iOS push notification is received
body: <p>I want to open a specific view controller when a user clicks on the received push notification message, but when I receive a push notification message and click the message, only the application opens, but it does not redirect to a specific view controller.</p>
  
  <p>My code is</p>
  
  <pre><code>-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
      if (applicationIsActive) {
          UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Bildirim"
                                                              message:[NSString stringWithFormat:@"%@ ",[[userInfo objectForKey:@"aps"] objectForKey:@"alert"]]
                                                             delegate:self cancelButtonTitle:@"Ok" 
                                                    otherButtonTitles:nil];
          [alertView show];
  
          UIViewController *vc = self.window.rootViewController;
          PushBildirimlerim *pvc = [vc.storyboard instantiateViewControllerWithIdentifier:@"PushBildirimlerim "];
  
          [vc presentViewController:pvc animated:YES completion:nil];
       }
  }
  </code></pre>
  
  <p>My question is related with the iOS push notifications.</p>