title: Push Notification Delegates not getting called
body: <p>I am implementing push notification for a client. I have followed all the steps of push notifications setup on device (including certificate generation and everything).</p>
  
  <p>I have used following links as reference:  </p>
  
  <ul>
  <li><a href="http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12" rel="nofollow">Apple Push Notification Services Tutorial</a></li>
  <li><a href="http://mobiforge.com/developing/story/programming-apple-push-notification-services?dm_switcher=true" rel="nofollow">Programming Apple Push Notification Services</a></li>
  </ul>
  
  <p>I call this function in app delegates <code>didFinishLaunchingWithOptions</code></p>
  
  <pre><code>[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
  </code></pre>
  
  <p>After setup, i run the app i get the Blue Push notification warning dialogue but after I press Ok the delegates are not called. </p>
  
  <pre><code>- (void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error
  - (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
  </code></pre>
  
  <p>None of these delegates are called ever. I am stuck here as i cannot proceed further as none of the delegates is called.</p>
  
  <p>If any of you has faced a similar issue i would be very very thankful if you can help me out here.</p>