title: didRegisterForRemoteNotificationsWithDeviceToken is not called up in ios 9
body: <p>I have to implement <strong>APNS</strong> in my project, I have created <strong>APNS</strong> <strong>SSL</strong> in developer portal, and using this i have created new provision profile for this.
  Using SSL certificate I created <strong>P12</strong> file then merging it to <strong>PEM</strong> file.
  I get popup that App would like to send you notification.....
  i accept that but still i didn't get the device token !!</p>
  
  <p>In <code>didfinishLaunching</code> i use this part </p>
  
  <pre><code>float ver = [[[UIDevice currentDevice] systemVersion] floatValue];
  
     if(ver &gt;= 8 &amp;&amp; ver&lt;9)
      {
          if ([[UIApplication sharedApplication] respondsToSelector:@selector(registerUserNotificationSettings:)])
          {
             [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
  
              [[UIApplication sharedApplication] registerForRemoteNotifications];
  
              //[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
  
          }
      }else if (ver &gt;=9){
  
          [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]];
  
          [[UIApplication sharedApplication] registerForRemoteNotifications];
  
      }
      else{
          //iOS6 and iOS7 specific code
          [[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeAlert];
      }
  
  
  I have used delegate method of push notification 
  
  
  - (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
  {
      NSLog(@"Failed to get token, error: %@", error);
  }
  
  
  - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
  
      for (id key in userInfo) {
          NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
      }    
  
  }
  </code></pre>